diff options
author | 2016-01-29 12:39:15 +0100 | |
---|---|---|
committer | 2016-01-29 20:33:39 -0800 | |
commit | e434e04110704eb91acfecbd0fb8ca8e2da9c29b (patch) | |
tree | 6e94790bc109bd4867b580ec9199443b106875f8 /fs/btrfs/dev-replace.c | |
parent | net: nb8800: avoid uninitialized variable warning (diff) | |
download | wireguard-linux-e434e04110704eb91acfecbd0fb8ca8e2da9c29b.tar.xz wireguard-linux-e434e04110704eb91acfecbd0fb8ca8e2da9c29b.zip |
net: tg3: avoid uninitialized variable warning
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>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions