]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: undo operations in case of failure
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 18 Jun 2020 08:37:40 +0000 (11:37 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Jun 2020 02:59:14 +0000 (19:59 -0700)
commitf7a6fe55610f198827c62ea18ca2339cc74ec11b
tree944a1f7297fa5bedce0719a2f45ad77ca342453f
parent66e32799a03ce9f2e545cb62a8285a275751c442
net: macb: undo operations in case of failure

Undo previously done operation in case macb_phylink_connect()
fails. Since macb_reset_hw() is the 1st undo operation the
napi_exit label was renamed to reset_hw.

Fixes: b933f9aff890 ("net: macb: convert to phylink")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c