thermal: Add braces around suspect code
It looks like this code is missing braces, otherwise the if statement shouldn't have been indented. Fix it. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
This commit is contained in:
parent
e8db5d6736
commit
ca9521b770
|
@ -712,11 +712,12 @@ thermal_of_build_thermal_zone(struct device_node *np)
|
||||||
}
|
}
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
for_each_child_of_node(child, gchild)
|
for_each_child_of_node(child, gchild) {
|
||||||
ret = thermal_of_populate_bind_params(gchild, &tz->tbps[i++],
|
ret = thermal_of_populate_bind_params(gchild, &tz->tbps[i++],
|
||||||
tz->trips, tz->ntrips);
|
tz->trips, tz->ntrips);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto free_tbps;
|
goto free_tbps;
|
||||||
|
}
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
of_node_put(child);
|
of_node_put(child);
|
||||||
|
|
Loading…
Reference in New Issue