9
0
Fork 0

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:
Andrey Smirnov 2016-06-01 21:58:45 -07:00 committed by Sascha Hauer
parent 224174354f
commit 580ad4021c
1 changed files with 0 additions and 4 deletions

View File

@ -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.
*/