aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-stm32.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2024-04-24 11:43:28 +0000
committerGreg Kroah-Hartman <[email protected]>2024-05-04 16:41:48 +0000
commita0e244ec59bdc4caac4b7a105f029fd1af28f0f2 (patch)
tree0ea25625275b2cf678774ad55704ac2e40bce823 /drivers/pwm/pwm-stm32.c
parentstaging: vc04_services: vchiq_arm: Fix NULL ptr dereferences (diff)
downloadkernel-a0e244ec59bdc4caac4b7a105f029fd1af28f0f2.tar.gz
kernel-a0e244ec59bdc4caac4b7a105f029fd1af28f0f2.zip
staging: vc04_services: Delete unnecessary NULL check
The "state" pointer points to an offset in the middle of the "mgmt" struct so it can't possibly be NULL. And also we dereferenced it on the line before. So this NULL check is pointless. Delete it. Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Stefan Wahren <[email protected]> Reviewed-by: Umang Jain <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions