[Skiboot] [PATCH 3/5] slw: fix not indented if condition

Stewart Smith stewart at linux.vnet.ibm.com
Fri Jul 8 10:38:33 AEST 2016


found by Smatch static analysis (http://smatch.sourceforge.net/):
hw/slw.c:687 add_cpu_idle_state_properties() warn: if statement not indented

Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
 hw/slw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/slw.c b/hw/slw.c
index 3ebe01a2b3cb..74b9cd5477c5 100644
--- a/hw/slw.c
+++ b/hw/slw.c
@@ -685,7 +685,7 @@ void add_cpu_idle_state_properties(void)
 			supported_states_mask |= OPAL_PM_SLEEP_ENABLED |
 						OPAL_PM_SLEEP_ENABLED_ER1;
 		if (has_slw)
-		supported_states_mask |= OPAL_PM_WINKLE_ENABLED;
+			supported_states_mask |= OPAL_PM_WINKLE_ENABLED;
 	}
 	for (i = 0; i < nr_states; i++) {
 		/* For each state, check if it is one of the supported states. */
-- 
2.1.4



More information about the Skiboot mailing list