From: Stephen Boyd Date: Wed, 18 Jun 2014 23:32:08 +0000 (-0700) Subject: thermal: Add braces around suspect code X-Git-Tag: firefly_0821_release~3680^2~36^2~22^2~2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c60fd301f395adc8f788be8b192a58f0246ddbae;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Zhang Rui (cherry picked from commit ca9521b770c988bb6bb8eea1241f7a487dab6ff1) Signed-off-by: Alex Shi --- diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index 97d312f3b670..4b2b999b7611 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);