projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8db5d6
)
thermal: Add braces around suspect code
author
Stephen Boyd
<sboyd@codeaurora.org>
Wed, 18 Jun 2014 23:32:08 +0000
(16:32 -0700)
committer
Zhang Rui
<rui.zhang@intel.com>
Mon, 30 Jun 2014 02:18:57 +0000
(10:18 +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>
drivers/thermal/of-thermal.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/thermal/of-thermal.c
b/drivers/thermal/of-thermal.c
index 04b1be7fa018ef5caef4ff748d6fb4d1b4d93ddc..a95ee2889b19cd9acbde99cb12cf7aed80a5288f 100644
(file)
--- 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);