ixgbe: fix impossible condition
Coverity flagged this condition: The condition offset == 0 && offset == 65535 can never be true because offset cannot be equal to two different values at the same time. Submitted by: bret_ketchum@dell.com Reported by: Coverity Reviewed by: tsoome, cem MFC after: 2 weeks Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D26144
This commit is contained in:
parent
791dda877f
commit
ab1c54fec6
@ -5147,8 +5147,8 @@ void ixgbe_get_oem_prod_version(struct ixgbe_hw *hw,
|
||||
nvm_ver->oem_valid = FALSE;
|
||||
hw->eeprom.ops.read(hw, NVM_OEM_PROD_VER_PTR, &offset);
|
||||
|
||||
/* Return is offset to OEM Product Version block is invalid */
|
||||
if (offset == 0x0 && offset == NVM_INVALID_PTR)
|
||||
/* Return if offset to OEM Product Version block is invalid */
|
||||
if (offset == 0x0 || offset == NVM_INVALID_PTR)
|
||||
return;
|
||||
|
||||
/* Read product version block */
|
||||
|
Loading…
x
Reference in New Issue
Block a user