i40e: Remove unneeded conversion
authorKamil Krawczyk <kamil.krawczyk@intel.com>
Fri, 27 Feb 2015 09:15:21 +0000 (09:15 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 7 Mar 2015 12:59:41 +0000 (04:59 -0800)
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>
drivers/net/ethernet/intel/i40e/i40e_nvm.c

index 89bd5b4d79cfd11779728258d7b2dd00f77efe10..e49acd2accd30917aff74dcb681fcede09949112 100644 (file)
@@ -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)