diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-09-24 19:34:39 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-09-25 09:22:52 -0400 | 
| commit | b53c5f1ab47d05a85b254e88f12be4ac5c71d42a (patch) | |
| tree | 2e9691e20d2a085737d9e643f0c481fbea31388d /isisd/isis_te.c | |
| parent | 8396ec6717f91453abaf261d724354589b554832 (diff) | |
isisd: circuit is derefed in every code path
No need to check for circuit being null, we have
already de-refed it in every code path and
would have crashed before this point if it was.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'isisd/isis_te.c')
| -rw-r--r-- | isisd/isis_te.c | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/isisd/isis_te.c b/isisd/isis_te.c index 44fa45d02b..9871d2bcb9 100644 --- a/isisd/isis_te.c +++ b/isisd/isis_te.c @@ -81,8 +81,7 @@ void isis_link_params_update(struct isis_circuit *circuit,  		return;  	/* Sanity Check */ -	if ((circuit == NULL) || (ifp == NULL) -	    || (circuit->state != C_STATE_UP)) +	if ((ifp == NULL) || (circuit->state != C_STATE_UP))  		return;  	zlog_debug("TE(%s): Update circuit parameters for interface %s",  | 
