Commit 081cea88 authored by Vasileios Amoiridis's avatar Vasileios Amoiridis Committed by Jonathan Cameron
Browse files

iio: pressure: bmp280: Remove dead error checks



The ret value is being checked already in all the previous
paths which exit in case of error, so this path can never
become true.

Signed-off-by: default avatarVasileios Amoiridis <vassilisamir@gmail.com>
Link: https://lore.kernel.org/r/20240508165207.145554-2-vassilisamir@gmail.com


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 4391affa
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1350,10 +1350,6 @@ static int bmp580_nvm_operation(struct bmp280_data *data, bool is_write)
		poll = 50;
		timeout = 400;
	}
	if (ret) {
		dev_err(data->dev, "failed to write command sequence\n");
		return -EIO;
	}

	/* Wait until NVM is ready again */
	ret = regmap_read_poll_timeout(data->regmap, BMP580_REG_STATUS, reg,