Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <ddrokosov@salutedevices.com>
Signed-off-by: George Stark <gnstark@salutedevices.com>
Link: https://lore.kernel.org/r/20240425171253.2752877-2-gnstark@salutedevices.com
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

authored by

George Stark and committed by
Uwe Kleine-König
6b2d60a5 b3c23dcc

-3
-3
drivers/pwm/pwm-meson.c
··· 311 311 struct meson_pwm_channel *channel; 312 312 u32 value; 313 313 314 - if (!state) 315 - return 0; 316 - 317 314 channel = &meson->channels[pwm->hwpwm]; 318 315 channel_data = &meson_pwm_per_channel_data[pwm->hwpwm]; 319 316