Commit 6b2d60a5 authored by George Stark's avatar George Stark Committed by Uwe Kleine-König

pwm: meson: Drop unneeded check in .get_state()

Drop checking state argument for NULL pointer in meson_pwm_get_state()
due to it is called only from pwm core with always valid arguments.
Signed-off-by: default avatarDmitry Rokosov <ddrokosov@salutedevices.com>
Signed-off-by: default avatarGeorge Stark <gnstark@salutedevices.com>
Link: https://lore.kernel.org/r/20240425171253.2752877-2-gnstark@salutedevices.comSigned-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
parent b3c23dcc
...@@ -311,9 +311,6 @@ static int meson_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, ...@@ -311,9 +311,6 @@ static int meson_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm,
struct meson_pwm_channel *channel; struct meson_pwm_channel *channel;
u32 value; u32 value;
if (!state)
return 0;
channel = &meson->channels[pwm->hwpwm]; channel = &meson->channels[pwm->hwpwm];
channel_data = &meson_pwm_per_channel_data[pwm->hwpwm]; channel_data = &meson_pwm_per_channel_data[pwm->hwpwm];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment