From c1964d8eaf612d997e81474eb75071bedb2b914a Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Thu, 13 Jun 2019 21:48:00 +0200 Subject: [PATCH] system-linux: remove superfluous dev check No need to check if dev is NULL as device is always set when system_neigh is called Fixes issue reported by Coverity in CID 1445818 Signed-off-by: Hans Dedecker --- system-linux.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/system-linux.c b/system-linux.c index c63d8d8..6e5ca28 100644 --- a/system-linux.c +++ b/system-linux.c @@ -1945,9 +1945,6 @@ static int system_neigh(struct device *dev, struct device_neighbor *neighbor, in }; struct nl_msg *msg; - if (!dev) - return 1; - if (cmd == RTM_NEWNEIGH) flags |= NLM_F_CREATE | NLM_F_REPLACE; -- 2.30.2