leds: pca9532: Make pca9532_destroy_devices() return void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 22 Oct 2021 10:17:07 +0000 (12:17 +0200)
committerPavel Machek <pavel@ucw.cz>
Wed, 4 May 2022 17:37:51 +0000 (19:37 +0200)
commitc55f75c4f9c01934341b59ba8ac7492c13423e5b
treed3209a46fd21e343e1d6ba95fab384f94b43121a
parent96c59c8ba801bad56f5e635640e1371b1680e42e
leds: pca9532: Make pca9532_destroy_devices() return void

Up to now pca9532_destroy_devices() returns always zero because it's
always called with data != NULL. Remove the never-taken error path and
make it return void which makes it easier to see in the callers that
there is no error to handle.

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

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-pca9532.c