From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Date: Wed, 8 Jan 2020 08:42:36 +0300 > Smatch complains that the NULL checking isn't done consistently: > > net/ethtool/strset.c:253 strset_prepare_data() > error: we previously assumed 'dev' could be null (see line 233) > > It looks like there is a missing return on this path. > > Fixes: 71921690f974 ("ethtool: provide string sets with STRSET_GET request") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Applied.