mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 04:23:35 +02:00
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>
This commit is contained in:
parent
92cc50a005
commit
c4f9679c92
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user