e1000: Remove unnecessary intialization
We always call e1000_init_eeprom_params() as a part of probing, so there's no need check if it needs to be called in e1000_read_eeprom(). Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
224174354f
commit
580ad4021c
|
@ -563,10 +563,6 @@ int32_t e1000_read_eeprom(struct e1000_hw *hw, uint16_t offset,
|
|||
|
||||
DEBUGFUNC();
|
||||
|
||||
/* If eeprom is not yet detected, do so now */
|
||||
if (eeprom->word_size == 0)
|
||||
e1000_init_eeprom_params(hw);
|
||||
|
||||
/* A check for invalid values: offset too large, too many words,
|
||||
* and not enough words.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue