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@xxxxxxxxxxxxxx> --- 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