]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5cd2b69e46572a20d48e05548777a912768332bb
treedde1c83196ee8170f5f16b94b29927823186e219
parent49c6d6c16be19e1993370cdc94f66e4c0f8cbf15
ice: Remove unnecessary NULL check before dev_put

Since commit 1d6b50d416e7 ("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