diff options
author | Kees Cook <[email protected]> | 2024-02-23 09:29:39 -0800 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2024-02-25 12:11:31 +0000 |
commit | a1c9f508db2543aae59ea2378b07a026f6c917cf (patch) | |
tree | 4d2310dc09591f5b39c0ce03dd964088239051ba /tools/perf/scripts/python/export-to-postgresql.py | |
parent | daec424cc57b33a28f8621eb7ac85f8bd327bd6b (diff) |
iio: pressure: dlhl60d: Initialize empty DLH bytes
3 bytes were being read but 4 were being written. Explicitly initialize
the unused bytes to 0 and refactor the loop to use direct array
indexing, which appears to silence a Clang false positive warning[1].
Indent improvement included for readability of the fixed code.
Link: https://github.com/ClangBuiltLinux/linux/issues/2000 [1]
Fixes: ac78c6aa4a5d ("iio: pressure: Add driver for DLH pressure sensors")
Signed-off-by: Kees Cook <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions