diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-07-08 10:20:14 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-07-10 21:36:59 +0200 |
commit | 803375ac696dc82487c94587eedfa49fcc9cd5bb (patch) | |
tree | 628fc74295510598c4669eea487414b3bc70ea7d /zebra/interface.c | |
parent | Merge pull request #13962 from opensourcerouting/fix/ignore_tests/lib/test_darr (diff) | |
download | frr-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.c | 2 |
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( |