Skip to content

Commit 5e79656

Browse files
Colin Ian KingJonathan Cameron
authored andcommitted
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>
1 parent 42776c1 commit 5e79656

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/iio/light/cm36651.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ static int cm36651_write_prox_event_config(struct iio_dev *indio_dev,
532532
int state)
533533
{
534534
struct cm36651_data *cm36651 = iio_priv(indio_dev);
535-
int cmd, ret = -EINVAL;
535+
int cmd, ret;
536536

537537
mutex_lock(&cm36651->lock);
538538

0 commit comments

Comments
 (0)