]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bfdd: remove unused initialization sa warning
authorMark Stapp <mjs@voltanet.io>
Thu, 14 Nov 2019 13:29:09 +0000 (08:29 -0500)
committerMark Stapp <mjs@voltanet.io>
Thu, 14 Nov 2019 13:29:09 +0000 (08:29 -0500)
There's a variable initialization that's triggering an SA
warning - don't do that.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
bfdd/bfd_packet.c

index ed36bb742e75d9058b6a5952eb35972a0abe7df4..398719d18c2f88a8e180b6dce537d295d7492356 100644 (file)
@@ -523,13 +523,14 @@ int bfd_recv_cb(struct thread *t)
        bool is_mhop;
        ssize_t mlen = 0;
        uint8_t ttl = 0;
-       vrf_id_t vrfid = VRF_DEFAULT;
+       vrf_id_t vrfid;
        ifindex_t ifindex = IFINDEX_INTERNAL;
        struct sockaddr_any local, peer;
        uint8_t msgbuf[1516];
        struct bfd_vrf_global *bvrf = THREAD_ARG(t);
 
        vrfid = bvrf->vrf->vrf_id;
+
        /* Schedule next read. */
        bfd_sd_reschedule(bvrf, sd);