summaryrefslogtreecommitdiffstats
path: root/ldpd
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-06-02 16:27:54 +0200
committerRenato Westphal <renato@opensourcerouting.org>2017-06-03 03:08:07 +0200
commitca70b756bf4c5b4aeb554fc1acd2c98aa696d6d7 (patch)
treeadc203f72e88cbad3350c4db40a9830903499c70 /ldpd
parentldpd: fix bug in pseudowire control-word negotiation (diff)
downloadfrr-ca70b756bf4c5b4aeb554fc1acd2c98aa696d6d7.tar.xz
frr-ca70b756bf4c5b4aeb554fc1acd2c98aa696d6d7.zip
ldpd: remove variable that is not necessary anymore
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd')
-rw-r--r--ldpd/lde_lib.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/ldpd/lde_lib.c b/ldpd/lde_lib.c
index 89aa6d420..8dc305cac 100644
--- a/ldpd/lde_lib.c
+++ b/ldpd/lde_lib.c
@@ -437,7 +437,6 @@ lde_check_mapping(struct map *map, struct lde_nbr *ln)
struct lde_req *lre;
struct lde_map *me;
struct l2vpn_pw *pw;
- int msgsource = 0;
lde_map2fec(map, ln->id, &fec);
@@ -538,18 +537,12 @@ lde_check_mapping(struct map *map, struct lde_nbr *ln)
default:
break;
}
-
- msgsource = 1;
}
/* LMp.13 & LMp.16: Record the mapping from this peer */
if (me == NULL)
me = lde_map_add(ln, fn, 0);
me->map = *map;
- if (msgsource == 0)
- /* LMp.13: just return since we use liberal lbl retention */
- return;
-
/*
* LMp.17 - LMp.27 are unnecessary since we don't need to implement
* loop detection. LMp.28 - LMp.30 are unnecessary because we are