mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
55205d400e
commit
2a9e79782d
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ void mv88e6xxx_poll_link(struct dsa_switch *ds)
|
|||
|
||||
for (i = 0; i < DSA_MAX_PORTS; i++) {
|
||||
struct net_device *dev;
|
||||
int port_status;
|
||||
int uninitialized_var(port_status);
|
||||
int link;
|
||||
int speed;
|
||||
int duplex;
|
||||
|
|
Loading…
Reference in a new issue