diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-25 19:50:49 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 19:50:49 -0500 |
commit | 2a9e79782d99160cad7d834eef9bb77b446e8532 (patch) | |
tree | 97ef43ce1635e8837539ffb3dec18411f1a2a703 /net | |
parent | 55205d400efe3260e29ad26dd64c992cec2efafd (diff) |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/dsa/mv88e6xxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/mv88e6xxx.c b/net/dsa/mv88e6xxx.c index aa6c609c59f2..4e4d8b5ad03d 100644 --- a/net/dsa/mv88e6xxx.c +++ b/net/dsa/mv88e6xxx.c | |||
@@ -358,7 +358,7 @@ void mv88e6xxx_poll_link(struct dsa_switch *ds) | |||
358 | 358 | ||
359 | for (i = 0; i < DSA_MAX_PORTS; i++) { | 359 | for (i = 0; i < DSA_MAX_PORTS; i++) { |
360 | struct net_device *dev; | 360 | struct net_device *dev; |
361 | int port_status; | 361 | int uninitialized_var(port_status); |
362 | int link; | 362 | int link; |
363 | int speed; | 363 | int speed; |
364 | int duplex; | 364 | int duplex; |