summaryrefslogtreecommitdiff
path: root/nl.c
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2019-10-29 21:27:39 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2022-09-16 01:31:30 +0000
commitf74511ed4608f9dd2d1ced612b0d6a3e65db5da4 (patch)
treeb2643da45e0edcaea18bb043ca3a327a927f5441 /nl.c
parent9faaa92e30bcf17b8b2a32607d53f7c8005fd7db (diff)
downloadlibnl-tiny-f74511ed4608f9dd2d1ced612b0d6a3e65db5da4.tar.gz
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 <ynezz@true.cz>
Diffstat (limited to 'nl.c')
-rw-r--r--nl.c1
1 files changed, 0 insertions, 1 deletions
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);
}