pwm: rcar: Drop useless call to pwm_get_state()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 24 Oct 2019 07:14:09 +0000 (09:14 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 20 Jan 2020 11:21:49 +0000 (12:21 +0100)
commitbca900829d6035a782d8209c834400ed44539c1d
treee20a96768c4acf3ab45029eceb391b12b3eb1c32
parentf24e564129f3b7508eff363353099657ff774d2b
pwm: rcar: Drop useless call to pwm_get_state()

pwm_get_state has no side effects and the resulting pwm_state is unused.
So drop the call to pwm_get_state() and the local variable from
rcar_pwm_apply().

The call was introduced in commit 7f68ce8287d3 ("pwm: rcar: Add support
"atomic" API") and already then was useless.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-rcar.c