net: dsa: mv88e6xxx: fix uninitialized error return
authorColin Ian King <colin.king@canonical.com>
Mon, 25 Apr 2016 22:11:22 +0000 (23:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2016 20:29:20 +0000 (16:29 -0400)
commit1d9619d5337df6cf56eb66b6c8213d1317583513
tree192ca5415164c14b3833864f9a2e139f1aeb31f6
parent7b7483409f09c15f30ac43242ead1ab3061e1f59
net: dsa: mv88e6xxx: fix uninitialized error return

The error return err is not initialized and there is a possibility
that err is not assigned causing mv88e6xxx_port_bridge_join to
return a garbage error return status. Fix this by initializing err
to 0.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c