diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2019-06-13 21:48:00 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2019-06-13 21:58:02 +0200 |
commit | c1964d8eaf612d997e81474eb75071bedb2b914a (patch) | |
tree | 8c86e6f0792cc5bdb6e08bac6fb81964a883eb39 | |
parent | 8c6358b5d42fe3ca05801823552ca5a2003bf792 (diff) |
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>
-rw-r--r-- | system-linux.c | 3 |
1 files changed, 0 insertions, 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; |