Message ID | 166125860068.401.6527171705353525583.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers | show |
Series | [thermal:,thermal/next] 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 82236fe..15b342f 100644 --- a/drivers/thermal/thermal_of.c +++ b/drivers/thermal/thermal_of.c @@ -1102,6 +1102,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;