Files
linux/drivers/net
Arnd Bergmann ec2170f98f net: tg3: avoid uninitialized variable warning
commit e434e04110 upstream.

The tg3_set_eeprom() function correctly initializes the 'start' variable,
but gcc generates a false warning:

drivers/net/ethernet/broadcom/tg3.c: In function 'tg3_set_eeprom':
drivers/net/ethernet/broadcom/tg3.c:12057:4: warning: 'start' may be used uninitialized in this function [-Wmaybe-uninitialized]

I have not come up with a way to restructure the code in a way that
avoids the warning without making it less readable, so this adds an
initialization for the declaration to shut up that warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-05-08 07:46:01 +02:00
..
2016-09-30 10:18:36 +02:00
2015-08-13 21:12:17 -07:00
2015-11-15 17:09:23 -05:00
2015-11-17 14:39:29 -05:00
2015-10-21 19:36:10 -07:00
2015-07-08 16:00:09 -07:00
2015-10-13 04:55:07 -07:00
2017-02-18 16:39:27 +01:00
2016-04-12 09:08:58 -07:00
2017-02-18 16:39:27 +01:00
2017-03-22 12:04:16 +01:00