]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sis900: fix warning in drivers/net/sis900.c
authorIngo Molnar <mingo@elte.hu>
Wed, 26 Nov 2008 00:52:13 +0000 (16:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 00:52:13 +0000 (16:52 -0800)
commitef0cd87ef6326609be8abf19030101be24cc5703
treefc2e07b2f70e9ee7b1a31d3306e3fb2a9960975a
parent180b65df7ba1e700e28aabfbddbad84b7beebe4b
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>
drivers/net/sis900.c