]> git.baikalelectronics.ru Git - kernel.git/commit
serial: max310x: Make max310x_remove() return void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 12 Oct 2021 15:39:42 +0000 (17:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Oct 2021 12:33:59 +0000 (14:33 +0200)
commit3f0c9a0e724cdc7684c71650241bc96bb17b5c5c
tree0369cccc3cbb3bbff7b99b0f0f77c413fe87f7a6
parent50fa057469b7c95ccc1473a9bae7ee445349f204
serial: max310x: Make max310x_remove() return void

Up to now max310x_remove() returns zero unconditionally. Make it return
void instead which makes it easier to see in the callers that there is
no error to handle.

Also the return value of spi remove callbacks is ignored anyway.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20211012153945.2651412-18-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/max310x.c