Commit 2a6d8c2f authored by Shannon Nelson's avatar Shannon Nelson Committed by Jeff Kirsher

i40e: remove unused nvm_semaphore_wait

The nvm_semaphore_wait field is set but never used, so let's
just get rid of it.

Change-ID: I2107bd29b69f99b1a61d7591d087429527c9d8fa
Signed-off-by: default avatarShannon Nelson <shannon.nelson@intel.com>
Acked-by: default avatarMichal Kosiarz <michal.kosiarz@intel.com>
Tested-by: default avatarJim Young <jamesx.m.young@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 0f52958b
...@@ -116,8 +116,6 @@ i40e_status i40e_acquire_nvm(struct i40e_hw *hw, ...@@ -116,8 +116,6 @@ i40e_status i40e_acquire_nvm(struct i40e_hw *hw,
} }
if (ret_code) { if (ret_code) {
hw->nvm.hw_semaphore_timeout = 0; hw->nvm.hw_semaphore_timeout = 0;
hw->nvm.hw_semaphore_wait =
I40E_MS_TO_GTIME(time) + gtime;
i40e_debug(hw, I40E_DEBUG_NVM, i40e_debug(hw, I40E_DEBUG_NVM,
"NVM acquire timed out, wait %llu ms before trying again.\n", "NVM acquire timed out, wait %llu ms before trying again.\n",
time); time);
......
...@@ -262,7 +262,6 @@ enum i40e_aq_resource_access_type { ...@@ -262,7 +262,6 @@ enum i40e_aq_resource_access_type {
struct i40e_nvm_info { struct i40e_nvm_info {
u64 hw_semaphore_timeout; /* 2usec global time (GTIME resolution) */ u64 hw_semaphore_timeout; /* 2usec global time (GTIME resolution) */
u64 hw_semaphore_wait; /* - || - */
u32 timeout; /* [ms] */ u32 timeout; /* [ms] */
u16 sr_size; /* Shadow RAM size in words */ u16 sr_size; /* Shadow RAM size in words */
bool blank_nvm_mode; /* is NVM empty (no FW present)*/ bool blank_nvm_mode; /* is NVM empty (no FW present)*/
......
...@@ -261,7 +261,6 @@ enum i40e_aq_resource_access_type { ...@@ -261,7 +261,6 @@ enum i40e_aq_resource_access_type {
struct i40e_nvm_info { struct i40e_nvm_info {
u64 hw_semaphore_timeout; /* 2usec global time (GTIME resolution) */ u64 hw_semaphore_timeout; /* 2usec global time (GTIME resolution) */
u64 hw_semaphore_wait; /* - || - */
u32 timeout; /* [ms] */ u32 timeout; /* [ms] */
u16 sr_size; /* Shadow RAM size in words */ u16 sr_size; /* Shadow RAM size in words */
bool blank_nvm_mode; /* is NVM empty (no FW present)*/ bool blank_nvm_mode; /* is NVM empty (no FW present)*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment