commit | 178f67b1288b6952117fdc4e5ffbd4c4bd4e4a7f | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Jun 05 14:04:13 2020 +0300 |
committer | David S. Miller <davem@davemloft.net> | Fri Jun 05 13:10:02 2020 -0700 |
tree | 1ec860fb6ae58be98d009b9a5975396b120b6b24 | |
parent | 7d877c35ca84cfa634fd63c2b64bf7b6ae9c71cb [diff] |
ethtool: linkinfo: remove an unnecessary NULL check This code generates a Smatch warning: net/ethtool/linkinfo.c:143 ethnl_set_linkinfo() warn: variable dereferenced before check 'info' (see line 119) Fortunately, the "info" pointer is never NULL so the check can be removed. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Michal Kubecek <mkubecek@suse.cz> Signed-off-by: David S. Miller <davem@davemloft.net>