Files
linux/drivers
Arnd Bergmann f006b2c5df net: xgene: avoid bogus maybe-uninitialized warning
In some configurations, gcc cannot trace the state of variables
across a spin_unlock() barrier, leading to a warning about
correct code:

xgene_enet_main.c: In function 'xgene_enet_start_xmit':
../../../phy/mdio-xgene.h:112:14: error: 'mss_index' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Here we can trivially move the assignment before that spin_unlock,
which reliably avoids the warning.

Fixes: e3978673f5 ("drivers: net: xgene: Fix MSS programming")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-08 21:30:54 -05:00
..
2016-11-15 22:34:25 -05:00
2016-11-29 17:35:14 +02:00
2016-11-16 20:46:32 +01:00
2016-09-27 12:33:47 +02:00
2016-11-16 12:39:57 -07:00
2016-09-20 20:57:12 +10:00
2016-11-29 16:43:24 +01:00
2016-11-01 09:04:04 -06:00