diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-11-28 20:24:43 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-12-21 18:10:09 +0300 |
commit | e8ffca613cd8dfc27adbfc6cee08b659abed3d88 (patch) | |
tree | 6f09d1b972647eaf03c5829fef7a400c63cb93bf | |
parent | ea011add51bc8980c067a1c2df9ec84219062b53 (diff) | |
download | linux-e8ffca613cd8dfc27adbfc6cee08b659abed3d88.tar.xz |
iio:dummy: Drop set but unused variable len.
Not sure what the thinking was here, as lost to history, but the
variable is clearly not used so get rid of it.
Warning seen with clang W=1 tests (may be present with other compilers
and build options).
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20211128172445.2616166-11-jic23@kernel.org
-rw-r--r-- | drivers/iio/dummy/iio_simple_dummy_buffer.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iio/dummy/iio_simple_dummy_buffer.c b/drivers/iio/dummy/iio_simple_dummy_buffer.c index 59aa60d4ca37..d81c2b2dad82 100644 --- a/drivers/iio/dummy/iio_simple_dummy_buffer.c +++ b/drivers/iio/dummy/iio_simple_dummy_buffer.c @@ -45,7 +45,6 @@ static irqreturn_t iio_simple_dummy_trigger_h(int irq, void *p) { struct iio_poll_func *pf = p; struct iio_dev *indio_dev = pf->indio_dev; - int len = 0; u16 *data; data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); @@ -79,7 +78,6 @@ static irqreturn_t iio_simple_dummy_trigger_h(int irq, void *p) indio_dev->masklength, j); /* random access read from the 'device' */ data[i] = fakedata[j]; - len += 2; } } |