Skip to content

Commit a04cf55

Browse files
Dan Carpenterjic23
authored andcommitted
iio: dac: ad7303: remove an unneeded check
"ret" is zero here. There is no need to check again. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent 7638c2e commit a04cf55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/iio/dac/ad7303.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static ssize_t ad7303_write_dac_powerdown(struct iio_dev *indio_dev,
9292
ad7303_write(st, chan->channel, st->dac_cache[chan->channel]);
9393

9494
mutex_unlock(&indio_dev->mlock);
95-
return ret ? ret : len;
95+
return len;
9696
}
9797

9898
static int ad7303_get_vref(struct ad7303_state *st,

0 commit comments

Comments
 (0)