diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2016-12-09 17:50:01 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2016-12-09 17:50:01 +0100 |
commit | 5304ba7e560fc9b5f13fd5657e370d726714673b (patch) | |
tree | a505ad39c3396ecf20d5f1d2192bb83258dd59c8 /ospfd/ospf_te.c | |
parent | lib: remove vty->index (diff) | |
download | frr-5304ba7e560fc9b5f13fd5657e370d726714673b.tar.xz frr-5304ba7e560fc9b5f13fd5657e370d726714673b.zip |
*: kill useless if(...) after VTY_DECLVAR_CONTEXT
VTY_DECLVAR_CONTEXT already contains a NULL check, vty warning message
and return statement. These are not needed.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_te.c')
-rw-r--r-- | ospfd/ospf_te.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ospfd/ospf_te.c b/ospfd/ospf_te.c index ec9a14590..c691aac04 100644 --- a/ospfd/ospf_te.c +++ b/ospfd/ospf_te.c @@ -2268,9 +2268,6 @@ DEFUN (ospf_mpls_te_on, struct listnode *node; struct mpls_te_link *lp; - if (!ospf) - return CMD_SUCCESS; - if (OspfMplsTE.status == enabled) return CMD_SUCCESS; @@ -2336,9 +2333,6 @@ DEFUN (ospf_mpls_te_router_addr, struct te_tlv_router_addr *ra = &OspfMplsTE.router_addr; struct in_addr value; - if (!ospf) - return CMD_SUCCESS; - if (! inet_aton (argv[idx_ipv4]->arg, &value)) { vty_out (vty, "Please specify Router-Addr by A.B.C.D%s", VTY_NEWLINE); |