]> git.baikalelectronics.ru Git - kernel.git/commit
dsa: fix warning in net/dsa/mv88e6060.c
authorIngo Molnar <mingo@elte.hu>
Wed, 26 Nov 2008 00:51:13 +0000 (16:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 00:51:13 +0000 (16:51 -0800)
commit240ab9dd262af70aa8ff5de9b4303c5a12926454
treeaf627eccd250a06e714cfdb604c9fffb47c3f60c
parent95ee5895bb731fb24ac124fd38351cd00aa95b06
dsa: fix warning in net/dsa/mv88e6060.c

this warning:

  net/dsa/mv88e6060.c: In function ‘mv88e6060_poll_link’:
  net/dsa/mv88e6060.c:225: 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/mv88e6060.c