diff options
author | Kamil Krawczyk <kamil.krawczyk@intel.com> | 2015-02-27 09:15:21 +0000 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2015-03-07 04:59:41 -0800 |
commit | ef0620774f403c6f226ec22857f5df9217d603cd (patch) | |
tree | 77527c16c2be946ea8cb9432ff55895d42c7e6c3 /drivers/net/ethernet/intel | |
parent | d6d83c1b3e471124bde4ea57bb7bf278bb931553 (diff) | |
download | blackbird-op-linux-ef0620774f403c6f226ec22857f5df9217d603cd.tar.gz blackbird-op-linux-ef0620774f403c6f226ec22857f5df9217d603cd.zip |
i40e: Remove unneeded conversion
Remove LE16 to CPU endianes conversion from i40e_read_nvm_word_srctl
function, as it's already done by register read function.
Change-ID: I739f0f20a9b8e18223e54c0ca5443e63d75da878
Signed-off-by: Kamil Krawczyk <kamil.krawczyk@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel')
-rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_nvm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_nvm.c b/drivers/net/ethernet/intel/i40e/i40e_nvm.c index 89bd5b4d79cf..e49acd2accd3 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_nvm.c +++ b/drivers/net/ethernet/intel/i40e/i40e_nvm.c @@ -200,7 +200,6 @@ static i40e_status i40e_read_nvm_word_srctl(struct i40e_hw *hw, u16 offset, *data = (u16)((sr_reg & I40E_GLNVM_SRDATA_RDDATA_MASK) >> I40E_GLNVM_SRDATA_RDDATA_SHIFT); - *data = le16_to_cpu(*data); } } if (ret_code) |