OSDN Git Service

ice: Remove unnecessary NULL check before dev_put
authorZiyang Xuan <william.xuanziyang@huawei.com>
Thu, 16 Jun 2022 04:52:59 +0000 (12:52 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 30 Jun 2022 20:53:33 +0000 (13:53 -0700)
commitafa646299a282c5e621242c2db8c95c0ccb57d0e
treedde1c83196ee8170f5f16b94b29927823186e219
parent0ca85829903f1d4849f2fb463d86ea04d679c98f
ice: Remove unnecessary NULL check before dev_put

Since commit b37a46683739 ("netdevice: add the case if dev is NULL"),
dev_put(NULL) is safe, check NULL before dev_put() is not needed.

Signed-off-by: Ziyang Xuan <william.xuanziyang@huawei.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_lag.c