[PATCH 2/4] pwm: meson: Drop useless check for channel data being NULL

Martin Blumenstingl martin.blumenstingl at googlemail.com
Sat Nov 20 15:34:52 PST 2021


On Mon, Nov 8, 2021 at 2:46 PM Uwe Kleine-König
<u.kleine-koenig at pengutronix.de> wrote:
>
> In meson_pwm_free() the function pwm_get_chip_data() always returns a
> non-NULL pointer because it's only called when the request callback
> succeeded and this callback calls pwm_set_chip_data() in this case.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com>



More information about the linux-amlogic mailing list