Commit c1964d8e authored by Hans Dedecker's avatar Hans Dedecker

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: default avatarHans Dedecker <dedeckeh@gmail.com>
parent 8c6358b5
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment