diff mbox series

of: unittest: Fix of_count_phandle_with_args() expected value message

Message ID 20240111085025.2073894-1-geert+renesas@glider.be
State Accepted
Headers show
Series of: unittest: Fix of_count_phandle_with_args() expected value message | expand

Checks

Context Check Description
robh/checkpatch warning total: 0 errors, 2 warnings, 8 lines checked
robh/patch-applied fail build log

Commit Message

Geert Uytterhoeven Jan. 11, 2024, 8:50 a.m. UTC
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: 4dde83569832f937 ("of: Fix double free in of_parse_phandle_with_args_map")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/of/unittest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Rob Herring (Arm) Jan. 11, 2024, 10:18 p.m. UTC | #1
On Thu, 11 Jan 2024 09:50:25 +0100, Geert Uytterhoeven wrote:
> 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: 4dde83569832f937 ("of: Fix double free in of_parse_phandle_with_args_map")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
>  drivers/of/unittest.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Applied, thanks!
diff mbox series

Patch

diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
index 45bd0d28c7173db9..cfd60e35a8992d7d 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
@@ -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;