e1000e: cleanup - check return values consistently
The majority of the e1000e code checks most function return values using a test like 'if (ret_val)' or 'if (!ret_val)' but there are a few instances of 'if (ret_val == 0)'. This patch converts the latter to the former for consistency. Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
f36bb6cacd
commit
9e2d7657e2
@@ -537,7 +537,7 @@ static int e1000_set_eeprom(struct net_device *netdev,
|
||||
ret_val = e1000_read_nvm(hw, first_word, 1, &eeprom_buff[0]);
|
||||
ptr++;
|
||||
}
|
||||
if (((eeprom->offset + eeprom->len) & 1) && (ret_val == 0))
|
||||
if (((eeprom->offset + eeprom->len) & 1) && (!ret_val))
|
||||
/* need read/modify/write of last changed EEPROM word */
|
||||
/* only the first byte of the word is being modified */
|
||||
ret_val = e1000_read_nvm(hw, last_word, 1,
|
||||
|
Reference in New Issue
Block a user