mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
sis900: fix warning in drivers/net/sis900.c
this warning: drivers/net/sis900.c: In function ‘sis900_timer’: drivers/net/sis900.c:1280: warning: ‘speed’ may be used uninitialized in this function triggers because GCC does not recognize the (correct) error flow between sis900_read_mode(), 'speed' and 'duplex'. Annotate it. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
180b65df7b
commit
ef0cd87ef6
1 changed files with 1 additions and 1 deletions
|
@ -1281,7 +1281,7 @@ static void sis900_timer(unsigned long data)
|
|||
u16 status;
|
||||
|
||||
if (!sis_priv->autong_complete){
|
||||
int speed, duplex = 0;
|
||||
int uninitialized_var(speed), duplex = 0;
|
||||
|
||||
sis900_read_mode(net_dev, &speed, &duplex);
|
||||
if (duplex){
|
||||
|
|
Loading…
Reference in a new issue