[OpenWrt-Devel] [PATCH libnl-tiny 3/3] remove never used err variable assignment disliked by scan-build

Petr Štetiar ynezz at true.cz
Wed Nov 6 11:41:20 EST 2019


scan-build from clang version 9 complains about following:

 nl.c:648:3: warning: Value stored to 'err' is never read
                err = 0;
                ^     ~

Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
 nl.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/nl.c b/nl.c
index 505965fd16aa..c875573bb05c 100644
--- a/nl.c
+++ b/nl.c
@@ -645,7 +645,6 @@ continue_reading:
 				NL_CB_CALL(cb, NL_CB_VALID, msg);
 		}
 skip:
-		err = 0;
 		hdr = nlmsg_next(hdr, &n);
 	}
 	

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list