From 3cef9b7ffd2ba7e9badb725cc3694b64b3e32e5b Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 28 Mar 2019 22:22:26 -0400 Subject: [PATCH] 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 --- bfdd/bfd.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5