staging: fieldbus: anybus: Make remove callback return void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 5 May 2021 20:29:22 +0000 (22:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 May 2021 09:19:41 +0000 (11:19 +0200)
commit32dcd0724237a435983f9cf60005513c9ae48e44
treee7c53f3f80a97cf5c3d11156c5ce97f3884a0fde
parentcc1966a7e0844922c463e06a61d4ef60aa2644b9
staging: fieldbus: anybus: Make remove callback return void

The driver core ignores the return value of struct bus_type::remove()
because there is only little that can be done. To simplify the quest to
make this function return void, let struct
anybuss_client_driver::remove() return void, too. All users already
unconditionally return 0, this commit makes it obvious that returning an
error code is a bad idea.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20210505202923.198607-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fieldbus/anybuss/anybuss-client.h
drivers/staging/fieldbus/anybuss/hms-profinet.c
drivers/staging/fieldbus/anybuss/host.c