pwm: meson: Drop always false check from .apply()

The PWM core only calls the apply callback with a valid state pointer,
so don't repeat this check already done in the core.

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>
This commit is contained in:
Uwe Kleine-König 2021-11-08 14:46:27 +01:00 committed by Thierry Reding
parent 5f97f18fea
commit 914195ec7e

View File

@ -265,9 +265,6 @@ static int meson_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
struct meson_pwm_channel *channel = &meson->channels[pwm->hwpwm];
int err = 0;
if (!state)
return -EINVAL;
if (!state->enabled) {
if (state->polarity == PWM_POLARITY_INVERSED) {
/*