[PATCH] gpio: brcmstb: Make .remove() obviously always return 0

Bartosz Golaszewski brgl at bgdev.pl
Thu Jun 23 14:19:38 PDT 2022


On Tue, Jun 21, 2022 at 8:35 AM Uwe Kleine-König
<u.kleine-koenig at pengutronix.de> wrote:
>
> priv cannot be NULL because brcmstb_gpio_probe() calls
> platform_set_drvdata() with a non-NULL argument, so the check for !priv can
> be dropped.
>
> Also remove the variable ret that is only used to hide a bit that in the
> end zero is returned.
>
> This is a preparation for making platform remove callbacks return void.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> ---

Applied, thanks!

Bart



More information about the linux-arm-kernel mailing list