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>
@@ -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;