mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-30 22:26:28 +00:00
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>
This commit is contained in:
parent
62a9c814e1
commit
e36e5b569c
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user