summaryrefslogtreecommitdiffstats
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-07-08 10:20:14 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-07-10 21:36:59 +0200
commit803375ac696dc82487c94587eedfa49fcc9cd5bb (patch)
tree628fc74295510598c4669eea487414b3bc70ea7d /zebra/interface.c
parentMerge pull request #13962 from opensourcerouting/fix/ignore_tests/lib/test_darr (diff)
downloadfrr-803375ac696dc82487c94587eedfa49fcc9cd5bb.tar.xz
frr-803375ac696dc82487c94587eedfa49fcc9cd5bb.zip
zebra: Do not check ifp for NULL
It's already checked at the bottom of the function. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r--zebra/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index e923c0a18..6be6f5159 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -1444,7 +1444,7 @@ static void zebra_if_netconf_update_ctx(struct zebra_dplane_ctx *ctx,
linkdown_set = &zrouter.default_linkdownv6;
}
} else {
- zif = ifp ? ifp->info : NULL;
+ zif = ifp->info;
if (!zif) {
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug(