summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2014-06-18 16:32:08 -0700
committerChanho Park <chanho61.park@samsung.com>2014-11-18 12:00:53 +0900
commit4a982dba2ab325c74673190c3225f22ffbf6f6b6 (patch)
treecbf4bc360b8a57e430a5d2302dae1232abdad080
parent782e44afd5e6cad91cd0a3a2041c0cf956581ea2 (diff)
downloadlinux-3.10-4a982dba2ab325c74673190c3225f22ffbf6f6b6.tar.gz
linux-3.10-4a982dba2ab325c74673190c3225f22ffbf6f6b6.tar.bz2
linux-3.10-4a982dba2ab325c74673190c3225f22ffbf6f6b6.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. Change-Id: Ia5f7b1e784e79d58e0a68851f4ccc1a42565a247 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
-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 04b1be7fa01..a95ee2889b1 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);