diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2014-06-18 16:32:08 -0700 |
---|---|---|
committer | Jonghwa Lee <jonghwa3.lee@samsung.com> | 2014-10-08 11:16:15 +0900 |
commit | cb1ac5c60a53896a63c1a3ff1d3bb74fc5e24664 (patch) | |
tree | 1e9c0ac58aa1c8ef90d1fca6af51caefef34024b | |
parent | aba05f17d046924c019b8566abf4660e7c349b90 (diff) | |
download | linux-3.10-cb1ac5c60a53896a63c1a3ff1d3bb74fc5e24664.tar.gz linux-3.10-cb1ac5c60a53896a63c1a3ff1d3bb74fc5e24664.tar.bz2 linux-3.10-cb1ac5c60a53896a63c1a3ff1d3bb74fc5e24664.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.c | 3 |
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); |