Skip to content

Commit

Permalink
of: unittest: Fix of_count_phandle_with_args() expected value message
Browse files Browse the repository at this point in the history
[ Upstream commit 716089b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
geertu authored and gregkh committed Jan 25, 2024
1 parent 2a6a912 commit 439d3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/of/unittest.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ static void __init of_unittest_parse_phandle_with_args_map(void)
}

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

for (i = 0; i < 9; i++) {
bool passed = true;
Expand Down

0 comments on commit 439d3c7

Please sign in to comment.