mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-22 20:58:22 +00:00
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>
This commit is contained in:
parent
fa847bb409
commit
a96dea2569
1 changed files with 6 additions and 8 deletions
|
@ -653,23 +653,21 @@ static int fdt_test_set_single(struct unit_test_state *uts,
|
||||||
* => fdt set /path property
|
* => fdt set /path property
|
||||||
*/
|
*/
|
||||||
ut_assertok(console_record_reset_enable());
|
ut_assertok(console_record_reset_enable());
|
||||||
if (sval) {
|
if (sval)
|
||||||
ut_assertok(run_commandf("fdt set %s %s %s", path, prop, 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));
|
ut_assertok(run_commandf("fdt set %s %s <%d>", path, prop, ival));
|
||||||
} else {
|
else
|
||||||
ut_assertok(run_commandf("fdt set %s %s", path, prop));
|
ut_assertok(run_commandf("fdt set %s %s", path, prop));
|
||||||
}
|
|
||||||
|
|
||||||
/* Validate the property is present and has correct value. */
|
/* Validate the property is present and has correct value. */
|
||||||
ut_assertok(run_commandf("fdt get value svar %s %s", path, prop));
|
ut_assertok(run_commandf("fdt get value svar %s %s", path, prop));
|
||||||
if (sval) {
|
if (sval)
|
||||||
ut_asserteq_str(sval, env_get("svar"));
|
ut_asserteq_str(sval, env_get("svar"));
|
||||||
} else if (integer) {
|
else if (integer)
|
||||||
ut_asserteq(ival, env_get_hex("svar", 0x1234));
|
ut_asserteq(ival, env_get_hex("svar", 0x1234));
|
||||||
} else {
|
else
|
||||||
ut_assertnull(env_get("svar"));
|
ut_assertnull(env_get("svar"));
|
||||||
}
|
|
||||||
ut_assertok(ut_check_console_end(uts));
|
ut_assertok(ut_check_console_end(uts));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue