[PATCH 1/2] pwm: vt8500: Drop if with an always false condition

Arnd Bergmann arnd at arndb.de
Tue Jun 22 00:41:26 PDT 2021


On Mon, Jun 21, 2021 at 3:04 PM Uwe Kleine-König
<u.kleine-koenig at pengutronix.de> wrote:
>
> vt8500_pwm_remove() is only called after vt8500_pwm_probe() returned
> successfully. In this case driver data was set to a non-NULL value
> and so chip can never be NULL.
>
> While touching this code also put declaration and assignment in a single
> line.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> ---

Both patches

Acked-by: Arnd Bergmann <arnd at arndb.de>



More information about the linux-arm-kernel mailing list