[OpenWrt-Devel,libnl-tiny,3/3] remove never used err variable assignment disliked by scan-build
diff mbox series

Message ID 20191106164120.5329-3-ynezz@true.cz
State Accepted
Delegated to: Petr Štetiar
Headers show
Series
  • [OpenWrt-Devel,libnl-tiny,1/3] use offsetof macro to make scan-build happy
Related show

Commit Message

Petr Štetiar Nov. 6, 2019, 4:41 p.m. UTC
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@true.cz>
---
 nl.c | 1 -
 1 file changed, 1 deletion(-)

Patch
diff mbox series

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);
 	}