[Skiboot] [PATCH 4/6] hw/occ: explicitly document fallthrough

Stewart Smith stewart at linux.vnet.ibm.com
Tue Jul 4 15:21:04 AEST 2017


Found by static analysis

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

diff --git a/hw/occ.c b/hw/occ.c
index 832bf42db252..1424ef887eb3 100644
--- a/hw/occ.c
+++ b/hw/occ.c
@@ -438,6 +438,7 @@ static bool add_cpu_pstate_properties(int *pstate_nom)
 	switch (occ_data->version) {
 	case 0x01:
 		ultra_turbo_supported = false;
+		/* fallthrough */
 	case 0x02:
 		if (proc_gen == proc_gen_p9) {
 			/**
-- 
2.9.4



More information about the Skiboot mailing list