diff options
author | F. Aragon <paco@voltanet.io> | 2018-06-29 17:01:29 +0200 |
---|---|---|
committer | F. Aragon <paco@voltanet.io> | 2018-06-29 17:47:05 +0200 |
commit | e36e5b569c24ba0f28549b78677b9806da9965d3 (patch) | |
tree | 008de858df257a0e12477c241d210159d7f9dbbc /zebra/kernel_netlink.c | |
parent | Merge pull request #2563 from pacovn/Coverity_1465494_String_not_null_termina... (diff) | |
download | frr-e36e5b569c24ba0f28549b78677b9806da9965d3.tar.xz frr-e36e5b569c24ba0f28549b78677b9806da9965d3.zip |
isisd zebra: dead code (Clang scan)
This correction fixes two bugs detected by Clang scan:
Bug Group: Dead store
Bug Type: Dead assignment
File: zebra/kernel_netlink.c
Function: netlink_parse_extended_ack
Line: 548
Bug Type: Dead increment
File: isisd/isis_lsp.c
Function: lsp_bits2string
Line: 625
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'zebra/kernel_netlink.c')
-rw-r--r-- | zebra/kernel_netlink.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/zebra/kernel_netlink.c b/zebra/kernel_netlink.c index 7334c8094..d9c663184 100644 --- a/zebra/kernel_netlink.c +++ b/zebra/kernel_netlink.c @@ -545,7 +545,6 @@ static void netlink_parse_extended_ack(struct nlmsghdr *h) if (off > h->nlmsg_len) { zlog_err("Invalid offset for NLMSGERR_ATTR_OFFS\n"); - off = 0; } else if (!(h->nlmsg_flags & NLM_F_CAPPED)) { /* * Header of failed message |