From 7d206035d9a6dd1e66d5349f76d9c614fbac65f6 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Mon, 22 Jan 2018 16:06:58 +0100 Subject: [PATCH] ospfd: fix static analysis with variable initialised never read the vrf identifier in the ospf_vrf_enable routine is never read, then does not need to be initialised. Signed-off-by: Philippe Guibert --- ospfd/ospfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c index 86a3293d71..68c682c6c4 100644 --- a/ospfd/ospfd.c +++ b/ospfd/ospfd.c @@ -2049,7 +2049,7 @@ static int ospf_vrf_delete(struct vrf *vrf) static int ospf_vrf_enable(struct vrf *vrf) { struct ospf *ospf = NULL; - vrf_id_t old_vrf_id = VRF_DEFAULT; + vrf_id_t old_vrf_id; if (IS_DEBUG_OSPF_EVENT) zlog_debug("%s: VRF %s id %u enabled", -- 2.39.5