|
|
@@ -416,8 +416,7 @@ static int ms5611_init(struct iio_dev *indio_dev)
|
|
|
return 0;
|
|
|
|
|
|
err_regulator_disable:
|
|
|
- if (!IS_ERR_OR_NULL(st->vdd))
|
|
|
- regulator_disable(st->vdd);
|
|
|
+ regulator_disable(st->vdd);
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
@@ -425,8 +424,7 @@ static void ms5611_fini(const struct iio_dev *indio_dev)
|
|
|
{
|
|
|
const struct ms5611_state *st = iio_priv(indio_dev);
|
|
|
|
|
|
- if (!IS_ERR_OR_NULL(st->vdd))
|
|
|
- regulator_disable(st->vdd);
|
|
|
+ regulator_disable(st->vdd);
|
|
|
}
|
|
|
|
|
|
int ms5611_probe(struct iio_dev *indio_dev, struct device *dev,
|