summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2023-03-10 04:33:14 +0100
committerSimon Glass <sjg@chromium.org>2023-03-14 16:08:51 -0600
commita96dea25694de42ca596c333f650f8636de09ed9 (patch)
treec577f68c95d14decc46e83755d14f421d3dba4de /test
parentfa847bb409d6a07bbd923e7889b485e943d75689 (diff)
downloadu-boot-a96dea25694de42ca596c333f650f8636de09ed9.tar.gz
u-boot-a96dea25694de42ca596c333f650f8636de09ed9.tar.bz2
u-boot-a96dea25694de42ca596c333f650f8636de09ed9.zip
test: cmd: fdt: Drop new unneeded curly brackets
Drop no longer needed { } around ut_assert*() functions in FDT test. No functional change. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Diffstat (limited to 'test')
-rw-r--r--test/cmd/fdt.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/cmd/fdt.c b/test/cmd/fdt.c
index 8ae8a52896..a03aff2663 100644
--- a/test/cmd/fdt.c
+++ b/test/cmd/fdt.c
@@ -653,23 +653,21 @@ static int fdt_test_set_single(struct unit_test_state *uts,
* => fdt set /path property
*/
ut_assertok(console_record_reset_enable());
- if (sval) {
+ if (sval)
ut_assertok(run_commandf("fdt set %s %s %s", path, prop, sval));
- } else if (integer) {
+ else if (integer)
ut_assertok(run_commandf("fdt set %s %s <%d>", path, prop, ival));
- } else {
+ else
ut_assertok(run_commandf("fdt set %s %s", path, prop));
- }
/* Validate the property is present and has correct value. */
ut_assertok(run_commandf("fdt get value svar %s %s", path, prop));
- if (sval) {
+ if (sval)
ut_asserteq_str(sval, env_get("svar"));
- } else if (integer) {
+ else if (integer)
ut_asserteq(ival, env_get_hex("svar", 0x1234));
- } else {
+ else
ut_assertnull(env_get("svar"));
- }
ut_assertok(ut_check_console_end(uts));
return 0;