pwm: meson: Drop useless check for channel data being NULL
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 8 Nov 2021 13:46:25 +0000 (14:46 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 1 Feb 2022 07:34:04 +0000 (08:34 +0100)
commitcb971fdb45921bda5b253b6916d8380faec8a8d8
tree022631979c5c40c09ced7581c51b7c8f4b594ec9
parent37349609f3a342a9eaff30532bd5560eec1c13b6
pwm: meson: Drop useless check for channel data being NULL

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@pengutronix.de>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-meson.c