aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/trigger/stm32-timer-trigger.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <[email protected]>2017-09-06 15:40:25 +0000
committerGreg Kroah-Hartman <[email protected]>2017-09-18 10:25:31 +0000
commitb72703e26b9478da531144ce5c4552dd22f1103d (patch)
treefa72c43bc8b5390668c8f04c5044fed16cabcfae /drivers/iio/trigger/stm32-timer-trigger.c
parentstaging: r8822be: fix null pointer dereferences with a null driver_adapter (diff)
downloadkernel-b72703e26b9478da531144ce5c4552dd22f1103d.tar.gz
kernel-b72703e26b9478da531144ce5c4552dd22f1103d.zip
staging: pi433: Move limit check to switch default to kill warning
With gcc-4.1.2: drivers/staging/pi433/rf69.c: In function ‘rf69_set_dio_mapping’: drivers/staging/pi433/rf69.c:566: warning: ‘regaddr’ may be used uninitialized in this function drivers/staging/pi433/rf69.c:565: warning: ‘shift’ may be used uninitialized in this function drivers/staging/pi433/rf69.c:564: warning: ‘mask’ may be used uninitialized in this function While this is a false positive, it can easily be fixed by moving the limit check into the "default" case of the switch statement. Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions