diff options
author | Colin Ian King <colin.i.king@intel.com> | 2024-10-10 18:08:35 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-10-10 19:06:19 +0100 |
commit | c4f9679c92dc8f5a16cd3ad1c9a4a23c6d3f52d7 (patch) | |
tree | 9e018af5d6d89a0227056d66e252b4116e20e576 | |
parent | 92cc50a00574d2c85ee6ebe142c88ce0634a750d (diff) | |
download | lwn-c4f9679c92dc8f5a16cd3ad1c9a4a23c6d3f52d7.tar.gz lwn-c4f9679c92dc8f5a16cd3ad1c9a4a23c6d3f52d7.zip |
iio: pressure: rohm-bm1390: Remove redundant if statement
There is a check on non-zero ret that is redundant because the
same check is being performed in a previous if statement and
also before that. The check is not required, remove it.
Signed-off-by: Colin Ian King <colin.i.king@intel.com>
Link: https://patch.msgid.link/20241010170835.772764-1-colin.i.king@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r-- | drivers/iio/pressure/rohm-bm1390.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/iio/pressure/rohm-bm1390.c b/drivers/iio/pressure/rohm-bm1390.c index ccaa07a569c9..f24d9f927681 100644 --- a/drivers/iio/pressure/rohm-bm1390.c +++ b/drivers/iio/pressure/rohm-bm1390.c @@ -417,9 +417,6 @@ static int __bm1390_fifo_flush(struct iio_dev *idev, unsigned int samples, return ret; } - if (ret) - return ret; - for (i = 0; i < smp_lvl; i++) { buffer[i].temp = temp; iio_push_to_buffers(idev, &buffer[i]); |