[Skiboot] [PATCH 5/6] hw/occ: remove dead code

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


ulta_turbo_supported will always be true in this codepath,
so the condition isn't needed

found by static analysis

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

diff --git a/hw/occ.c b/hw/occ.c
index 1424ef887eb3..7d0d22c50f8f 100644
--- a/hw/occ.c
+++ b/hw/occ.c
@@ -1,4 +1,4 @@
-/* Copyright 2013-2016 IBM Corp.
+/* Copyright 2013-2017 IBM Corp.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -474,10 +474,7 @@ static bool add_cpu_pstate_properties(int *pstate_nom)
 		}
 		pmin = occ_data->v9.pstate_min;
 		pnom = occ_data->v9.pstate_nom;
-		if (ultra_turbo_supported)
-			pmax = occ_data->v9.pstate_ultra_turbo;
-		else
-			pmax = occ_data->v9.pstate_turbo;
+		pmax = occ_data->v9.pstate_ultra_turbo;
 		break;
 	default:
 		/**
-- 
2.9.4



More information about the Skiboot mailing list