diff options
| author | Massimiliano Pellizzer <mpellizzer.dev@gmail.com> | 2025-11-25 18:18:16 +0100 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-12-21 11:41:12 +0000 |
| commit | 3624f038629d6b9ddf742f419ed7437bba0d2262 (patch) | |
| tree | f7a860c400633fcb9358fed2ca0a6944e4f022da /tools/perf/scripts/python | |
| parent | 5a306a64bf790ed084601d7f3e89d5dc4a18a5c2 (diff) | |
| download | linux-3624f038629d6b9ddf742f419ed7437bba0d2262.tar.gz linux-3624f038629d6b9ddf742f419ed7437bba0d2262.zip | |
iio: imu: smi330: remove redundant assignment in smi330_read_avail
In the IIO_CHAN_INFO_OVERSAMPLING_RATIO case, the type parameter
is assigned from smi330_average_attr.type and then immediately
overwritten with IIO_VAL_INT on the next line.
Since smi330_average_attr.type is already initialized to IIO_VAL_INT,
the second assignment is redundant. Remove the hardcoded assignment
to maintain consistency in the code.
Signed-off-by: Massimiliano Pellizzer <mpellizzer.dev@gmail.com>
Reviewed-by: Jianping Shen <Jianping.Shen@de.bosch.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
