Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Colin Ian King and committed by
Jonathan Cameron
c4f9679c 92cc50a0

-3
-3
drivers/iio/pressure/rohm-bm1390.c
··· 417 417 return ret; 418 418 } 419 419 420 - if (ret) 421 - return ret; 422 - 423 420 for (i = 0; i < smp_lvl; i++) { 424 421 buffer[i].temp = temp; 425 422 iio_push_to_buffers(idev, &buffer[i]);