Skip to content

Commit 716089b

Browse files
geerturobherring
authored andcommitted
of: unittest: Fix of_count_phandle_with_args() expected value message
The expected result value for the call to of_count_phandle_with_args() was updated from 7 to 8, but the accompanying error message was forgotten. Fixes: 4dde835 ("of: Fix double free in of_parse_phandle_with_args_map") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20240111085025.2073894-1-geert+renesas@glider.be Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 22439cf commit 716089b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/of/unittest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ static void __init of_unittest_parse_phandle_with_args_map(void)
574574
}
575575

576576
rc = of_count_phandle_with_args(np, "phandle-list", "#phandle-cells");
577-
unittest(rc == 8, "of_count_phandle_with_args() returned %i, expected 7\n", rc);
577+
unittest(rc == 8, "of_count_phandle_with_args() returned %i, expected 8\n", rc);
578578

579579
for (i = 0; i < 9; i++) {
580580
bool passed = true;

0 commit comments

Comments
 (0)