remove never used err variable assignment disliked by scan-build
authorPetr Štetiar <ynezz@true.cz>
Tue, 29 Oct 2019 20:27:39 +0000 (21:27 +0100)
committerPetr Štetiar <ynezz@true.cz>
Tue, 29 Oct 2019 21:16:00 +0000 (22:16 +0100)
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

diff --git a/nl.c b/nl.c
index 505965fd16aa8988e627871e2d3e42632cbfb7a1..c875573bb05c8ea4d54c2f8eab418ccf39200f21 100644 (file)
--- 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);
        }