net: dsa: mv88e6xxx: fix error code in mv88e6390_serdes_power()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Jun 2017 15:17:04 +0000 (18:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jun 2017 15:42:33 +0000 (11:42 -0400)
commit64b2f72671a9a8cbea1aa575d3ea3998987e8c53
treee62dd809b59f1aa4f7c6c4c4160a2cc876e247e9
parent74811a710e18c22eca1ffbf97ebd6201efea7d91
net: dsa: mv88e6xxx: fix error code in mv88e6390_serdes_power()

We're accidentally returning the wrong variable.  "cmode" is
uninitialized at this point so it causes a static checker warning.

Fixes: 6335e9f2446b ("net: dsa: mv88e6xxx: mv88e6390X SERDES support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/serdes.c