summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-12-19 12:54:07 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-12-22 13:35:28 -0800
commit50d82ad4be31a3fb2b5d7a3fb7c6948deab0d24e (patch)
tree53316a51c89f8f94bc35529c6e6808039dd7d017
parent3bf5d65f4324510231cf33e5d75654f4fb1d1892 (diff)
staging:iio: Remove unused variable
Fixes the following warning: drivers/staging/iio/industrialio-buffer.c: In function ‘iio_scan_mask_query’: drivers/staging/iio/industrialio-buffer.c:620: warning: unused variable ‘mask’ Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/iio/industrialio-buffer.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/iio/industrialio-buffer.c b/drivers/staging/iio/industrialio-buffer.c
index a03a574965b3..68db2d24c5e8 100644
--- a/drivers/staging/iio/industrialio-buffer.c
+++ b/drivers/staging/iio/industrialio-buffer.c
@@ -617,8 +617,6 @@ EXPORT_SYMBOL_GPL(iio_scan_mask_set);
int iio_scan_mask_query(struct iio_dev *indio_dev,
struct iio_buffer *buffer, int bit)
{
- long *mask;
-
if (bit > indio_dev->masklength)
return -EINVAL;