From: Petr Štetiar Date: Tue, 29 Oct 2019 20:27:39 +0000 (+0100) Subject: remove never used err variable assignment disliked by scan-build X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=0219008cc8767655d7e747497e8e1133a3e8f840;p=project%2Flibnl-tiny.git remove never used err variable assignment disliked by scan-build 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 --- diff --git a/nl.c b/nl.c index 505965f..c875573 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); }