summaryrefslogtreecommitdiffstats
path: root/zebra/label_manager.c
diff options
context:
space:
mode:
authorHung-Weic Chiu <sppsorrg@gmail.com>2017-05-10 04:51:28 +0200
committerQuentin Young <qlyoung@users.noreply.github.com>2017-05-10 21:46:24 +0200
commit4afc1b4d4b88484379a78d794e9eee7374cb8b08 (patch)
tree95f8b362fd568833a2773c5685542bd6d6e25e6d /zebra/label_manager.c
parent- Solve the Coverity Scan PW.ASSIGN_WHERE_COMPARE_MEANT (diff)
downloadfrr-4afc1b4d4b88484379a78d794e9eee7374cb8b08.tar.xz
frr-4afc1b4d4b88484379a78d794e9eee7374cb8b08.zip
Address the error "Dead assignment" of static analysif
- Refer to https://ci1.netdef.org/browse/FRR-FRR4-44/artifact/shared/static_analysis/index.html - Remove unused variable Signed-off-by: Hung-Weic Chiu <sppsorrg@gmail.com>
Diffstat (limited to 'zebra/label_manager.c')
-rw-r--r--zebra/label_manager.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/zebra/label_manager.c b/zebra/label_manager.c
index bf67141cd..7dbb36edb 100644
--- a/zebra/label_manager.c
+++ b/zebra/label_manager.c
@@ -205,7 +205,6 @@ struct label_manager_chunk *assign_label_chunk(u_char proto, u_short instance,
struct label_manager_chunk *lmc;
struct listnode *node;
- node = lbl_mgr.lc_list->head;
/* first check if there's one available */
for (ALL_LIST_ELEMENTS_RO(lbl_mgr.lc_list, node, lmc)) {
if (lmc->proto == NO_PROTO && lmc->end - lmc->start + 1 == size) {