aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2017-07-04 15:08:38 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-07-04 15:13:52 +1000
commitef37b478a0a32fa4d715008c2c1ba1a4b015e740 (patch)
tree9d085009509b78fc602ba2955558f93d00ce9717
parent007f86d60012d03f2d4d741a0b777346e09696d8 (diff)
downloadskiboot-ef37b478a0a32fa4d715008c2c1ba1a4b015e740.zip
skiboot-ef37b478a0a32fa4d715008c2c1ba1a4b015e740.tar.gz
skiboot-ef37b478a0a32fa4d715008c2c1ba1a4b015e740.tar.bz2
hw/occ: remove dead code
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>
-rw-r--r--hw/occ.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/hw/occ.c b/hw/occ.c
index 1424ef8..7d0d22c 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:
/**