From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Date: Fri, 5 Jun 2020 14:04:13 +0300 > 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@xxxxxxxxxx> Applied.