|
@@ -311,13 +311,10 @@ static i40e_status i40e_read_nvm_word_aq(struct i40e_hw *hw, u16 offset,
|
|
static i40e_status __i40e_read_nvm_word(struct i40e_hw *hw,
|
|
static i40e_status __i40e_read_nvm_word(struct i40e_hw *hw,
|
|
u16 offset, u16 *data)
|
|
u16 offset, u16 *data)
|
|
{
|
|
{
|
|
- i40e_status ret_code = 0;
|
|
|
|
-
|
|
|
|
if (hw->flags & I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE)
|
|
if (hw->flags & I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE)
|
|
- ret_code = i40e_read_nvm_word_aq(hw, offset, data);
|
|
|
|
- else
|
|
|
|
- ret_code = i40e_read_nvm_word_srctl(hw, offset, data);
|
|
|
|
- return ret_code;
|
|
|
|
|
|
+ return i40e_read_nvm_word_aq(hw, offset, data);
|
|
|
|
+
|
|
|
|
+ return i40e_read_nvm_word_srctl(hw, offset, data);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -331,7 +328,7 @@ static i40e_status __i40e_read_nvm_word(struct i40e_hw *hw,
|
|
i40e_status i40e_read_nvm_word(struct i40e_hw *hw, u16 offset,
|
|
i40e_status i40e_read_nvm_word(struct i40e_hw *hw, u16 offset,
|
|
u16 *data)
|
|
u16 *data)
|
|
{
|
|
{
|
|
- i40e_status ret_code = 0;
|
|
|
|
|
|
+ i40e_status ret_code;
|
|
|
|
|
|
ret_code = i40e_acquire_nvm(hw, I40E_RESOURCE_READ);
|
|
ret_code = i40e_acquire_nvm(hw, I40E_RESOURCE_READ);
|
|
if (ret_code)
|
|
if (ret_code)
|
|
@@ -446,13 +443,10 @@ static i40e_status __i40e_read_nvm_buffer(struct i40e_hw *hw,
|
|
u16 offset, u16 *words,
|
|
u16 offset, u16 *words,
|
|
u16 *data)
|
|
u16 *data)
|
|
{
|
|
{
|
|
- i40e_status ret_code = 0;
|
|
|
|
-
|
|
|
|
if (hw->flags & I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE)
|
|
if (hw->flags & I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE)
|
|
- ret_code = i40e_read_nvm_buffer_aq(hw, offset, words, data);
|
|
|
|
- else
|
|
|
|
- ret_code = i40e_read_nvm_buffer_srctl(hw, offset, words, data);
|
|
|
|
- return ret_code;
|
|
|
|
|
|
+ return i40e_read_nvm_buffer_aq(hw, offset, words, data);
|
|
|
|
+
|
|
|
|
+ return i40e_read_nvm_buffer_srctl(hw, offset, words, data);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|