summaryrefslogtreecommitdiff
path: root/sharpd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-01-23 10:28:30 -0500
committerDonald Sharp <sharpd@nvidia.com>2024-01-23 10:28:30 -0500
commit2703f331e24fd4f2f625323d1dc707a6e62595b6 (patch)
tree4805282c82d9d98aeadb05f31e547cb337741fb7 /sharpd
parent3ab8fc13c1ed1d8d9e4415f424b8237826bac872 (diff)
sharpd: Fix coverity issues
New commits had an assignment instead of a comparison option. Coverity wisely found it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'sharpd')
-rw-r--r--sharpd/sharp_zebra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c
index 6588300daa..f4947540d2 100644
--- a/sharpd/sharp_zebra.c
+++ b/sharpd/sharp_zebra.c
@@ -1018,7 +1018,7 @@ static int sharp_zebra_process_neigh(ZAPI_CALLBACK_ARGS)
}
zlog_debug("Received: %s %pSU dev %s lladr %pSU",
- (cmd = ZEBRA_NEIGH_ADDED) ? "NEW" : "DEL", &addr, ifp->name,
+ (cmd == ZEBRA_NEIGH_ADDED) ? "NEW" : "DEL", &addr, ifp->name,
&lladdr);
return 0;