diff options
| author | Stefan Wahren <[email protected]> | 2024-04-25 16:58:48 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-05-04 16:42:01 +0000 |
| commit | 4e81120fe11e2e7f76a9e557f3ca9ab5acb78040 (patch) | |
| tree | 9fed36830e1a05af61bac301e9e20811b3cfc96c /drivers/pwm/pwm-stm32.c | |
| parent | staging: vc04_services: Delete unnecessary NULL check (diff) | |
| download | kernel-4e81120fe11e2e7f76a9e557f3ca9ab5acb78040.tar.gz kernel-4e81120fe11e2e7f76a9e557f3ca9ab5acb78040.zip | |
staging: vchiq_arm: Drop unnecessary NULL check
Looking at the handling of service instance within the VCHIQ
driver shows that it's not possible that service_callback is
called with instance is a NULL pointer. So drop the unnecessary
NULL check and fix:
vchiq_arm.c:1109 service_callback() warn:
variable dereferenced before check 'instance' (see line 1091)
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/linux-arm-kernel/[email protected]/
Signed-off-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
