drivers: net: xgene: Fix error handling
authorMatthias Brugger <mbrugger@suse.com>
Tue, 3 May 2016 14:05:07 +0000 (16:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 18:00:44 +0000 (14:00 -0400)
commit20decb7e486d7eefff3931f58d092d2d7c024a1c
tree0e9a8948d66215575953b65b0c934ddeb5159054
parent7391daf2ffc780679d6ab3fad1db2619e5dd2c2a
drivers: net: xgene: Fix error handling

When probe bails out with an error, we try to unregister the
netdev before we have even registered it. Fix the goto statements
for that.

Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_main.c