Commit 43c0f64
iio: pressure: bmp280: Use IS_ERR() in bmp280_common_probe()
`devm_gpiod_get_optional()` may return non-NULL error pointer on failure.
Check its return value using `IS_ERR()` and propagate the error if
necessary.
Fixes: df6e712 ("iio: pressure: bmp280: Explicitly mark GPIO optional")
Signed-off-by: Salah Triki <salah.triki@gmail.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250818092740.545379-2-salah.triki@gmail.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>1 parent 433b99e commit 43c0f64
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3213 | 3213 | | |
3214 | 3214 | | |
3215 | 3215 | | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
3216 | 3219 | | |
3217 | | - | |
3218 | | - | |
3219 | | - | |
3220 | | - | |
| 3220 | + | |
| 3221 | + | |
3221 | 3222 | | |
3222 | 3223 | | |
3223 | 3224 | | |
| |||
0 commit comments