summaryrefslogtreecommitdiff
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-08-24 21:43:29 -0300
committerRenato Westphal <renato@opensourcerouting.org>2017-08-24 21:49:39 -0300
commit0af35d90a125952d04aa892522b6be324f2dfbf7 (patch)
tree30a64161c4e98d6695d8c3104d4dba1c41d8e767 /zebra/interface.c
parente691f179b6c6fc26536e68958f19ff6983a03274 (diff)
*: fix assorted issues detected by Coverity Scan
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index c17e408ea0..12312ff43a 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -493,7 +493,7 @@ void if_add_update(struct interface *ifp)
if (!CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_ACTIVE)) {
SET_FLAG(ifp->status, ZEBRA_INTERFACE_ACTIVE);
- if (if_data && if_data->shutdown == IF_ZEBRA_SHUTDOWN_ON) {
+ if (if_data->shutdown == IF_ZEBRA_SHUTDOWN_ON) {
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug(
"interface %s vrf %u index %d is shutdown. "