diff mbox

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

Message ID 20170704052106.23165-5-stewart@linux.vnet.ibm.com
State Accepted
Headers show

Commit Message

Stewart Smith July 4, 2017, 5:21 a.m. UTC
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@linux.vnet.ibm.com>
---
 hw/occ.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
diff mbox

Patch

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:
 		/**