From: Hans Dedecker Date: Thu, 13 Jun 2019 19:48:00 +0000 (+0200) Subject: system-linux: remove superfluous dev check X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c1964d8eaf612d997e81474eb75071bedb2b914a;p=oweals%2Fnetifd.git 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 --- 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;