From 803375ac696dc82487c94587eedfa49fcc9cd5bb Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Sat, 8 Jul 2023 11:20:14 +0300 Subject: [PATCH] zebra: Do not check ifp for NULL It's already checked at the bottom of the function. Signed-off-by: Donatas Abraitis --- zebra/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/interface.c b/zebra/interface.c index e923c0a187..6be6f51598 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( -- 2.39.5