diff options
| author | Jonathan Cameron <[email protected]> | 2022-09-17 14:14:01 +0100 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2022-09-21 18:42:57 +0100 |
| commit | 6ee2a7058fea5d42087045250c667ac02f1a4e20 (patch) | |
| tree | 80ef2a743001ba2791b6405bf44821c91c6de616 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 3259b99e0afc9b7b245b5aaa121a94a2b5d637ce (diff) | |
iio: accel: bma400: Fix smatch warning based on use of unintialized value.
Only specific bits in this value are ever used and those are initialized,
but that is complex to reason about in a checker. Hence, initialize
the value to zero and avoid the complexity.
Smatch warning:
drivers/iio/accel/bma400_core.c:1287 bma400_tap_event_en()
error: uninitialized symbol 'field_value'.
Reported-by: Dan Carpenter <[email protected]>
Cc: Jagath Jog J <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Acked-by: Jagath Jog J <[email protected]>
Fixes: 961db2da159d ("iio: accel: bma400: Add support for single and double tap events")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions