diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-25 19:51:13 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 19:51:13 -0500 |
commit | d3f644da909549a4cf0ad27541df342f75158cc0 (patch) | |
tree | af627eccd250a06e714cfdb604c9fffb47c3f60c /net/dsa | |
parent | 2a9e79782d99160cad7d834eef9bb77b446e8532 (diff) |
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>
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/mv88e6060.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/mv88e6060.c b/net/dsa/mv88e6060.c index 54068ef251e8..bfb4a643c860 100644 --- a/net/dsa/mv88e6060.c +++ b/net/dsa/mv88e6060.c | |||
@@ -222,7 +222,7 @@ static void mv88e6060_poll_link(struct dsa_switch *ds) | |||
222 | 222 | ||
223 | for (i = 0; i < DSA_MAX_PORTS; i++) { | 223 | for (i = 0; i < DSA_MAX_PORTS; i++) { |
224 | struct net_device *dev; | 224 | struct net_device *dev; |
225 | int port_status; | 225 | int uninitialized_var(port_status); |
226 | int link; | 226 | int link; |
227 | int speed; | 227 | int speed; |
228 | int duplex; | 228 | int duplex; |