OSDN Git Service

i40e: remove unnecessary call to i40e_update_link_info
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 12 Dec 2016 23:44:09 +0000 (15:44 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 19 Feb 2017 04:35:35 +0000 (20:35 -0800)
commit03aa268b146127361c206fe3942add2adf6ce1d7
tree1a10ac3c6fa9d74134e969d237168eac4e36d96b
parent1d68005db4e72082f3e537d6c0cf831a71a7e2ee
i40e: remove unnecessary call to i40e_update_link_info

This call is made just prior to running i40e_link_event. In
i40e_link_event, we set hw->phy.get_link_info to true just prior to
calling i40e_get_link_status, which conveniently runs
i40e_update_link_info for us. Thus, we are running i40e_update_link_info
twice, which seems like something we don't need to do...

Change-ID: I36467a570f44b7546d218c99e134ff97c2709315
Signed-off-by: Jacob Keller <jacob.e.keller@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