summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksij Rempel <linux@rempel-privat.de>2018-11-20 21:07:06 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-11-21 09:08:09 +0100
commitb291ca7a28d75cd83bdc9bf17419db5a06aebcec (patch)
tree6c678e38c4bd15a9d290c6d62809cf5efd38eaf1
parent425d1c404d6b5c366e563d166b41dafcea4d166a (diff)
downloadbarebox-b291ca7a28d75cd83bdc9bf17419db5a06aebcec.tar.gz
barebox-b291ca7a28d75cd83bdc9bf17419db5a06aebcec.tar.xz
net: e1000: fix "Uninitialized variable: phy_data" warning
After carefully reading the code, this situation should never happen. This patch is to reduce warning noise. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/net/e1000/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/e1000/main.c b/drivers/net/e1000/main.c
index bb6ab4eb03..caa7274a8d 100644
--- a/drivers/net/e1000/main.c
+++ b/drivers/net/e1000/main.c
@@ -1130,7 +1130,7 @@ static int32_t e1000_set_d3_lplu_state_off(struct e1000_hw *hw)
{
uint32_t phy_ctrl = 0;
int32_t ret_val;
- uint16_t phy_data;
+ uint16_t phy_data = 0;
DEBUGFUNC();
/* During driver activity LPLU should not be used or it will attain link