diff options
| author | David Lechner <dlechner@baylibre.com> | 2026-03-15 22:21:51 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2026-03-21 22:35:56 +0300 |
| commit | 54dde4b1ed85a60ce1bcd10cc6783b9a33ea78e3 (patch) | |
| tree | 089f392d5ba2782ee8591bef88be18c34e0d55cf | |
| parent | 88d699da8ab6ead396809006c65d07b13b19907c (diff) | |
| download | linux-54dde4b1ed85a60ce1bcd10cc6783b9a33ea78e3.tar.xz | |
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>
| -rw-r--r-- | drivers/iio/light/as73211.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/iio/light/as73211.c b/drivers/iio/light/as73211.c index 32719f584c47..9fe830dac679 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) { |
