i40e: Remove duplicated prepare call in i40e_shutdown
authorSergey Nemov <sergey.nemov@intel.com>
Thu, 19 Jul 2018 11:25:22 +0000 (13:25 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 7 Aug 2018 15:19:08 +0000 (08:19 -0700)
commite661414c98dfbdcf8666a058a6278cd7a2f20c95
tree2c865bb3d083bb923588bf625491bf15e4134dd6
parentde7de576eca204de9a38e2f6dafe6b7c1ddc85c1
i40e: Remove duplicated prepare call in i40e_shutdown

Function call to i40e_prep_for_reset() is duplicated in
i40e_shutdown routine and gets called before
i40e_enable_mc_magic_wake() which blocks it from being executed
correctly on system reboot or shutdown because adminq is already
disabled by first i40e_prep_for_reset() call.

Two register write calls are also duplicated.

Signed-off-by: Sergey Nemov <sergey.nemov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c