summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/i40e/i40e_diag.c
diff options
context:
space:
mode:
authorJesse Brandeburg <jesse.brandeburg@intel.com>2013-11-26 14:49:16 +0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2013-12-16 12:49:22 +0400
commit895106a577c4ad2231c48f9cccb3cff1ae880471 (patch)
treef51fe0f532ef5f1fd1b6f7db8bc77ae52d9aae74 /drivers/net/ethernet/intel/i40e/i40e_diag.c
parentd52c20b7e40e4011c30eff987e038a0a25d3e0a7 (diff)
downloadlinux-895106a577c4ad2231c48f9cccb3cff1ae880471.tar.xz
i40e: trivial fixes
Prevent some compiler warnings and implement some other trivial fixes. Change-Id: I7f49d79b91b94df1ad4a8306a0410ed72238845f Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_diag.c')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_diag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_diag.c b/drivers/net/ethernet/intel/i40e/i40e_diag.c
index dc6c41fade9e..98c1ef563bf0 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_diag.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_diag.c
@@ -119,7 +119,7 @@ i40e_status i40e_diag_eeprom_test(struct i40e_hw *hw)
/* read NVM control word and if NVM valid, validate EEPROM checksum*/
ret_code = i40e_read_nvm_word(hw, I40E_SR_NVM_CONTROL_WORD, &reg_val);
- if ((!ret_code) &&
+ if (!ret_code &&
((reg_val & I40E_SR_CONTROL_WORD_1_MASK) ==
(0x01 << I40E_SR_CONTROL_WORD_1_SHIFT))) {
ret_code = i40e_validate_nvm_checksum(hw, NULL);