aboutsummaryrefslogtreecommitdiff
path: root/drivers/thermal
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2014-06-18 16:32:08 -0700
committerAlex Shi <alex.shi@linaro.org>2014-09-25 17:17:14 +0800
commitc60fd301f395adc8f788be8b192a58f0246ddbae (patch)
tree6816c79a3d15659929fe772c7f0ccda7b4e0ee23 /drivers/thermal
parent3a68305f1f92040bc57d6ea94bedde1b694d0356 (diff)
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> (cherry picked from commit ca9521b770c988bb6bb8eea1241f7a487dab6ff1) Signed-off-by: Alex Shi <alex.shi@linaro.org>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/of-thermal.c3
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);