[PATCH 11/32] of: silence warning about never-read error assignment
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Sep 5 02:55:36 PDT 2022
err is assigned specific error codes, but they are not propagated and
instead NULL is returned for error. Make it explicit that we handle all
errors the same by typecasting to (void).
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
drivers/of/resolver.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/of/resolver.c b/drivers/of/resolver.c
index 2457ae96a412..510d36f95192 100644
--- a/drivers/of/resolver.c
+++ b/drivers/of/resolver.c
@@ -272,6 +272,7 @@ out:
err:
of_delete_node(result);
+ (void)err;
return NULL;
}
--
2.30.2
More information about the barebox
mailing list