Browse Source

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 <dedeckeh@gmail.com>
Hans Dedecker 4 years ago
parent
commit
c1964d8eaf
1 changed files with 0 additions and 3 deletions
  1. 0 3
      system-linux.c

+ 0 - 3
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;