aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-stm32.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2022-12-02 18:35:12 +0000
committerThierry Reding <[email protected]>2022-12-06 11:46:07 +0000
commitfa1b9aa4492cc4f29178ef38ca0467c48714250e (patch)
tree199d06063719dd2a8bef6fb80579bc5a91378ac1 /drivers/pwm/pwm-stm32.c
parentpwm: Mark free pwm IDs as used in alloc_pwms() (diff)
downloadkernel-fa1b9aa4492cc4f29178ef38ca0467c48714250e.tar.gz
kernel-fa1b9aa4492cc4f29178ef38ca0467c48714250e.zip
pwm: Don't initialize list head before calling list_add()
list_add() just overwrites the members of the element to add (here: chip->list) without any checks, even in the DEBUG_LIST case. So save the effort to initialize the list. Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions