]> git.baikalelectronics.ru Git - kernel.git/commit
dsa: fix warning in net/dsa/mv88e6xxx.c
authorIngo Molnar <mingo@elte.hu>
Wed, 26 Nov 2008 00:50:49 +0000 (16:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 00:50:49 +0000 (16:50 -0800)
commit95ee5895bb731fb24ac124fd38351cd00aa95b06
tree97ef43ce1635e8837539ffb3dec18411f1a2a703
parent135165459413085479ff488385fa0d543a3c4ca2
dsa: fix warning in net/dsa/mv88e6xxx.c

this warning:

  net/dsa/mv88e6xxx.c: In function ‘mv88e6xxx_poll_link’:
  net/dsa/mv88e6xxx.c:361: warning: ‘port_status’ may be used uninitialized in this function

triggers because GCC does not recognize the (correct) error flow
between 'link' and 'port_status'.

Annotate it.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/mv88e6xxx.c