summaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2014-06-19 01:32:08 +0200
committerZhang Rui <rui.zhang@intel.com>2014-06-30 04:18:57 +0200
commitca9521b770c988bb6bb8eea1241f7a487dab6ff1 (patch)
tree71b473459958c50f179791b5a7c7f5958fca0fb7 /drivers/thermal
parentthermal: hwmon: Make the check for critical temp valid consistent (diff)
downloadlinux-ca9521b770c988bb6bb8eea1241f7a487dab6ff1.tar.xz
linux-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')
-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);