Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <sboyd@codeaurora.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>

authored by

Stephen Boyd and committed by
Zhang Rui
ca9521b7 e8db5d67

+2 -1
+2 -1
drivers/thermal/of-thermal.c
··· 712 712 } 713 713 714 714 i = 0; 715 - for_each_child_of_node(child, gchild) 715 + for_each_child_of_node(child, gchild) { 716 716 ret = thermal_of_populate_bind_params(gchild, &tz->tbps[i++], 717 717 tz->trips, tz->ntrips); 718 718 if (ret) 719 719 goto free_tbps; 720 + } 720 721 721 722 finish: 722 723 of_node_put(child);