summaryrefslogtreecommitdiff
path: root/drivers/thermal/of-thermal.c
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2014-06-18 16:32:08 -0700
committerZhang Rui <rui.zhang@intel.com>2014-06-30 10:18:57 +0800
commitca9521b770c988bb6bb8eea1241f7a487dab6ff1 (patch)
tree71b473459958c50f179791b5a7c7f5958fca0fb7 /drivers/thermal/of-thermal.c
parente8db5d6736a712a3e2280c0e31f4b301d85172d8 (diff)
downloadlwn-ca9521b770c988bb6bb8eea1241f7a487dab6ff1.tar.gz
lwn-ca9521b770c988bb6bb8eea1241f7a487dab6ff1.zip
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>
Diffstat (limited to 'drivers/thermal/of-thermal.c')
-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 04b1be7fa018..a95ee2889b19 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);