From: Donald Sharp Date: Fri, 29 Mar 2019 02:22:26 +0000 (-0400) Subject: bfdd: Clean up assignment without being used SA issue X-Git-Tag: 7.1_pulled~121^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F4042%2Fhead;p=mirror%2Ffrr.git bfdd: Clean up assignment without being used SA issue 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 --- diff --git a/bfdd/bfd.c b/bfdd/bfd.c index 3575ba7a00..e9645824f2 100644 --- a/bfdd/bfd.c +++ b/bfdd/bfd.c @@ -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; }