diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-25 16:52:13 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 16:52:13 -0800 |
commit | ef0cd87ef6326609be8abf19030101be24cc5703 (patch) | |
tree | fc2e07b2f70e9ee7b1a31d3306e3fb2a9960975a /drivers | |
parent | 180b65df7ba1e700e28aabfbddbad84b7beebe4b (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/sis900.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sis900.c b/drivers/net/sis900.c index de740ebfafb6..eb715f1bcd48 100644 --- a/drivers/net/sis900.c +++ b/drivers/net/sis900.c @@ -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){ |