[PATCH 11/32] of: silence warning about never-read error assignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux