aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sis900.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-11-25 19:52:13 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-25 19:52:13 -0500
commitef0cd87ef6326609be8abf19030101be24cc5703 (patch)
treefc2e07b2f70e9ee7b1a31d3306e3fb2a9960975a /drivers/net/sis900.c
parent180b65df7ba1e700e28aabfbddbad84b7beebe4b (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/net/sis900.c')
-rw-r--r--drivers/net/sis900.c2
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)
1281 u16 status; 1281 u16 status;
1282 1282
1283 if (!sis_priv->autong_complete){ 1283 if (!sis_priv->autong_complete){
1284 int speed, duplex = 0; 1284 int uninitialized_var(speed), duplex = 0;
1285 1285
1286 sis900_read_mode(net_dev, &speed, &duplex); 1286 sis900_read_mode(net_dev, &speed, &duplex);
1287 if (duplex){ 1287 if (duplex){