From ef37b478a0a32fa4d715008c2c1ba1a4b015e740 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Tue, 4 Jul 2017 15:08:38 +1000 Subject: 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 --- hw/occ.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'hw') 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: /** -- cgit v1.1