]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: as73211: remove duplicate zero init of scan.chan[3]
authorDavid Lechner <dlechner@baylibre.com>
Sun, 15 Mar 2026 19:21:51 +0000 (14:21 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Mar 2026 19:35:56 +0000 (19:35 +0000)
commit54dde4b1ed85a60ce1bcd10cc6783b9a33ea78e3
tree089f392d5ba2782ee8591bef88be18c34e0d55cf
parent88d699da8ab6ead396809006c65d07b13b19907c
iio: light: as73211: remove duplicate zero init of scan.chan[3]

Remove setting scan.chan[3] to zero. Since commit 433b99e92294 ("iio:
light: as73211: Ensure buffer holes are zeroed"), the entire scan struct
is zeroed before being filled with data, so this is redundant.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/as73211.c