diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2014-06-18 16:32:08 -0700 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2014-09-29 15:15:51 +0800 |
commit | e021051e0a9e0077407799907912c6160fe8be9c (patch) | |
tree | 1c2dbbcb7d280633f6788c355acca49555ad4c1d | |
parent | 44ce1b57c46c84cb3d9aa413701763d7cf72b919 (diff) |
thermal: Add braces around suspect codev3.14/topic/misc
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>
(cherry picked from commit ca9521b770c988bb6bb8eea1241f7a487dab6ff1)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
-rw-r--r-- | drivers/thermal/of-thermal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index 97d312f3b670..4b2b999b7611 100644 --- a/drivers/thermal/of-thermal.c +++ b/drivers/thermal/of-thermal.c @@ -712,11 +712,12 @@ thermal_of_build_thermal_zone(struct device_node *np) } 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++], tz->trips, tz->ntrips); if (ret) goto free_tbps; + } finish: of_node_put(child); |