zorro: Simplify remove callback
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 30 Jul 2021 19:10:34 +0000 (21:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Aug 2021 12:37:04 +0000 (14:37 +0200)
commit18d214cc1d83af5dadf12c383686715497f20571
tree4a4d3ae611dc55ed98e007510c113e065aa984d5
parentfe976c4aadae80e4a5a3f665de685ce4f0b0426c
zorro: Simplify remove callback

The driver core only calls a remove callback when the device was
successfully bound (aka probed) before. So dev->driver is never NULL.

(And even if it was NULL, to_zorro_driver(NULL) isn't ...)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20210730191035.1455248-4-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/zorro/zorro-driver.c