]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7198afd068fff18bc4e22d0e3576a065844dd9e5
tree192ca5415164c14b3833864f9a2e139f1aeb31f6
parentb5f5930f5ff6386367f940d3e7983ce81b341ea0
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