summaryrefslogtreecommitdiff
path: root/drivers/iio/light
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-09-01 16:27:49 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-09-08 12:37:30 +0100
commit5e7965681aced6c844372d3babbda4dbc629fadb (patch)
tree3ac3bb22b3919e299127d5c3fcf07b20cda08db1 /drivers/iio/light
parent42776c14c69224a75c781852ae4ca9a4811fd075 (diff)
iio: light: cm36651: redundant assignment to variable ret
Variable ret is being assigned a value that is never read and is being re-assigned a little later on. The assignment is redundant and hence can be removed. Addresses-Coverity: ("Ununsed value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/light')
-rw-r--r--drivers/iio/light/cm36651.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/cm36651.c b/drivers/iio/light/cm36651.c
index 1019d625adb1..90e38fcc974b 100644
--- a/drivers/iio/light/cm36651.c
+++ b/drivers/iio/light/cm36651.c
@@ -532,7 +532,7 @@ static int cm36651_write_prox_event_config(struct iio_dev *indio_dev,
int state)
{
struct cm36651_data *cm36651 = iio_priv(indio_dev);
- int cmd, ret = -EINVAL;
+ int cmd, ret;
mutex_lock(&cm36651->lock);