From: David Lechner Date: Sun, 15 Mar 2026 19:21:51 +0000 (-0500) Subject: iio: light: as73211: remove duplicate zero init of scan.chan[3] X-Git-Tag: v7.1-rc1~17^2~120^2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54dde4b1ed85a60ce1bcd10cc6783b9a33ea78e3;p=thirdparty%2Fkernel%2Fstable.git 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 Reviewed-by: Andy Shevchenko Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/light/as73211.c b/drivers/iio/light/as73211.c index 32719f584c47a..9fe830dac6794 100644 --- a/drivers/iio/light/as73211.c +++ b/drivers/iio/light/as73211.c @@ -677,9 +677,6 @@ static irqreturn_t as73211_trigger_handler(int irq __always_unused, void *p) (char *)&scan.chan[0], 3 * sizeof(scan.chan[0])); if (ret < 0) goto done; - - /* Avoid pushing uninitialized data */ - scan.chan[3] = 0; } if (data_result) {