]> git.puffer.fish Git - mirror/frr.git/commitdiff
bfdd: Clean up assignment without being used SA issue 4042/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 29 Mar 2019 02:22:26 +0000 (22:22 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 29 Mar 2019 15:35:07 +0000 (11:35 -0400)
Clang's SA is reporting that we have a assignment without
subsuquent use.  Modify the code such that we no-longer
do this.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bfdd/bfd.c

index 3575ba7a008c9d5cb0af319f771bcf0d96e8cb15..e9645824f283d406de816b9d113388e50a7cabf9 100644 (file)
@@ -1180,6 +1180,9 @@ const char *bs_to_string(const struct bfd_session *bs)
        if (bs->key.ifname[0])
                pos += snprintf(buf + pos, sizeof(buf) - pos, " ifname:%s",
                                bs->key.ifname);
+
+       (void)pos;
+
        return buf;
 }