]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: pressure: rohm-bm1390: Remove redundant if statement
authorColin Ian King <colin.i.king@intel.com>
Thu, 10 Oct 2024 17:08:35 +0000 (18:08 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 10 Oct 2024 18:06:19 +0000 (19:06 +0100)
commitc4f9679c92dc8f5a16cd3ad1c9a4a23c6d3f52d7
tree9e018af5d6d89a0227056d66e252b4116e20e576
parent92cc50a00574d2c85ee6ebe142c88ce0634a750d
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>
drivers/iio/pressure/rohm-bm1390.c