[PATCH 02/20] pinctrl: single: Drop if block with always false condition

Linus Walleij linus.walleij at linaro.org
Tue Oct 10 06:36:23 PDT 2023


On Mon, Oct 9, 2023 at 11:22 AM Uwe Kleine-König
<u.kleine-koenig at pengutronix.de> wrote:


> pcs_remove() is only called after pcs_probe() completed successfully. In
> this case platform_set_drvdata() was called with a non-NULL argument and
> so platform_get_drvdata() won't return NULL.
>
> Simplify by removing the if block with the always false condition.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

Patch applied.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list