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>
This commit is contained in:
Colin Ian King 2019-09-01 16:27:49 +01:00 committed by Jonathan Cameron
parent 42776c14c6
commit 5e7965681a
1 changed files with 1 additions and 1 deletions

View File

@ -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);