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 <[email protected]>
Reviewed-by: David Lechner <[email protected]>
Link: https://patch.msgid.link/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>1 parent 433b99e commit 43c0f64
1 file changed
+5
-4
lines changed| 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