From: Colin Ian King Date: Thu, 10 Oct 2024 17:08:35 +0000 (+0100) Subject: iio: pressure: rohm-bm1390: Remove redundant if statement X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c4f9679c92dc8f5a16cd3ad1c9a4a23c6d3f52d7;p=users%2Fjedix%2Flinux-maple.git 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 Link: https://patch.msgid.link/20241010170835.772764-1-colin.i.king@gmail.com Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/pressure/rohm-bm1390.c b/drivers/iio/pressure/rohm-bm1390.c index ccaa07a569c9a..f24d9f9276812 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]);