diff options
| author | Quentin Young <qlyoung@users.noreply.github.com> | 2018-06-29 12:18:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-29 12:18:38 -0400 |
| commit | df6e5a848e4d20541da475f3214a8fd46ba6dc36 (patch) | |
| tree | 9f2ab1328f609bcd5738141e48725e0d0306c072 | |
| parent | 5b03d030d9c8f55460c0b22a58bea40fd00171dc (diff) | |
| parent | e36e5b569c24ba0f28549b78677b9806da9965d3 (diff) | |
Merge pull request #2587 from pacovn/Clang_scan_dead_code
isisd zebra: dead code (Clang scan)
| -rw-r--r-- | isisd/isis_lsp.c | 2 | ||||
| -rw-r--r-- | zebra/kernel_netlink.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/isisd/isis_lsp.c b/isisd/isis_lsp.c index 4dcde0cba6..c8ef829064 100644 --- a/isisd/isis_lsp.c +++ b/isisd/isis_lsp.c @@ -622,7 +622,7 @@ static const char *lsp_bits2string(uint8_t lsp_bits, char *buf, size_t buf_size) pos += sprintf(pos, "%d/", ISIS_MASK_LSP_PARTITION_BIT(lsp_bits) ? 1 : 0); - pos += sprintf(pos, "%d", ISIS_MASK_LSP_OL_BIT(lsp_bits) ? 1 : 0); + sprintf(pos, "%d", ISIS_MASK_LSP_OL_BIT(lsp_bits) ? 1 : 0); return buf; } diff --git a/zebra/kernel_netlink.c b/zebra/kernel_netlink.c index 7334c8094a..d9c6631845 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 |
