]> git.baikalelectronics.ru Git - kernel.git/commit
ice: remove dead code
authorBruce Allan <bruce.w.allan@intel.com>
Mon, 12 Oct 2020 22:53:26 +0000 (15:53 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 5 Feb 2021 19:44:48 +0000 (11:44 -0800)
commit7298dfee068404bf409516d2bc4ac72bf1be2ad2
tree300dfe469ce6bce5e3ed0418eb91ff5139d16022
parent1a694722448e1aa4e3d1dfa373867f865d33b7cc
ice: remove dead code

The check for a NULL pf pointer is moot since the earlier declaration and
assignment of struct device *dev already de-referenced the pointer.  Also,
the only caller of ice_set_dflt_mib() already ensures pf is not NULL.

Cc: Dave Ertman <david.m.ertman@intel.com>
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c