thermal: Add braces around suspect code
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 18 Jun 2014 23:32:08 +0000 (16:32 -0700)
committerAlex Shi <alex.shi@linaro.org>
Thu, 25 Sep 2014 09:17:14 +0000 (17:17 +0800)
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>
drivers/thermal/of-thermal.c

index 97d312f3b6709966fb84e153640a360d3b00ae31..4b2b999b7611cb04390dfa1c6c3b5ac208d26069 100644 (file)
@@ -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);