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 <[email protected]>
---
 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
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to