]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: pressure: bmp280: Fix uninitialized variable
authorYo-Jung (Leo) Lin <0xff07@gmail.com>
Fri, 11 Oct 2024 11:52:24 +0000 (19:52 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 12 Oct 2024 10:49:34 +0000 (11:49 +0100)
commitf32ea7aab378d99414a36e448f5f030e32aa9601
tree93333ccf13b7a05a694c9a3205f424775530ac46
parent220c71dafaa28cbb75fd785670cf68a758347026
iio: pressure: bmp280: Fix uninitialized variable

clang found that the "offset" in bmp580_trigger_handler doesn't get
initialized before access. Add proper initialization to this variable.

Signed-off-by: Yo-Jung Lin (Leo) <0xff07@gmail.com>
Link: https://patch.msgid.link/20241011115334.367736-1-0xff07@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/bmp280-core.c