Message ID | 20220808180915.446053-1-daniel.lezcano@linaro.org |
---|---|
State | Accepted |
Commit | 45b8850b3d3071d5ea9e19ad4a29ad5f0b5d1ec1 |
Headers | show |
Series | [1/4] thermal/of: Fix error code in of_thermal_zone_find() | expand |
diff --git a/drivers/thermal/thermal_of.c b/drivers/thermal/thermal_of.c index c2bb5954b21e..368eb58e97cf 100644 --- a/drivers/thermal/thermal_of.c +++ b/drivers/thermal/thermal_of.c @@ -368,6 +368,7 @@ static struct device_node *of_thermal_zone_find(struct device_node *sensor, int } } } + tz = ERR_PTR(-EINVAL); out: of_node_put(np); return tz;