Skip to content

Commit 6b2d60a

Browse files
geo-starkUwe Kleine-König
authored andcommitted
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: Dmitry Rokosov <[email protected]> Signed-off-by: George Stark <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]>
1 parent b3c23dc commit 6b2d60a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/pwm/pwm-meson.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,6 @@ static int meson_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm,
311311
struct meson_pwm_channel *channel;
312312
u32 value;
313313

314-
if (!state)
315-
return 0;
316-
317314
channel = &meson->channels[pwm->hwpwm];
318315
channel_data = &meson_pwm_per_channel_data[pwm->hwpwm];
319316

0 commit comments

Comments
 (0)