wilc1000: use goto labels on error path
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Fri, 6 Aug 2021 08:12:27 +0000 (11:12 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 21 Aug 2021 17:45:37 +0000 (20:45 +0300)
commitdc8b338f3bcd9be35a24d14104a2a28144232633
treefb751233a3f809a4dc3adb483f0a15ad4bf2f32d
parentb05897ca8c821a16ac03850c4704fe460b3f21a0
wilc1000: use goto labels on error path

Use goto labels on error path for probe functions. This makes code easier
to read. With this introduce also netdev_cleanup and call it where
necessary.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210806081229.721731-2-claudiu.beznea@microchip.com
drivers/net/wireless/microchip/wilc1000/sdio.c
drivers/net/wireless/microchip/wilc1000/spi.c