]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospfd: fix static analysis with variable initialised never read
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 22 Jan 2018 15:06:58 +0000 (16:06 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 27 Feb 2018 10:11:24 +0000 (11:11 +0100)
the vrf identifier in the ospf_vrf_enable routine is never read, then
does not need to be initialised.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
ospfd/ospfd.c

index 86a3293d7110bc4987e5ba0fc3438814eeaf2924..68c682c6c4824128580773f94c88baa944c6c058 100644 (file)
@@ -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",