aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2018-05-04 11:40:35 +0930
committerStewart Smith <stewart@linux.ibm.com>2018-05-04 03:25:04 -0500
commitcd2c3b097e21548788c2ffd82a428c62fdc929a7 (patch)
treec4098e3683240f379065f5b13dccd4f091a0a147
parent4216f2fb7b3118385a9d701c4ade4996c83aba0b (diff)
downloadskiboot-cd2c3b097e21548788c2ffd82a428c62fdc929a7.zip
skiboot-cd2c3b097e21548788c2ffd82a428c62fdc929a7.tar.gz
skiboot-cd2c3b097e21548788c2ffd82a428c62fdc929a7.tar.bz2
imc: Remove extra parentheses in test
These make clang angry: hw/imc.c:690:29: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((wakeup_engine_state == WAKEUP_ENGINE_PRESENT)) { ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ hw/imc.c:690:29: note: remove extraneous parentheses around the comparison to silence this warning if ((wakeup_engine_state == WAKEUP_ENGINE_PRESENT)) { ~ ^ ~ Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r--hw/imc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/imc.c b/hw/imc.c
index c567429..3392eaf 100644
--- a/hw/imc.c
+++ b/hw/imc.c
@@ -687,7 +687,7 @@ static int64_t opal_imc_counters_init(uint32_t type, uint64_t addr, uint64_t cpu
}
if (has_deep_states) {
- if ((wakeup_engine_state == WAKEUP_ENGINE_PRESENT)) {
+ if (wakeup_engine_state == WAKEUP_ENGINE_PRESENT) {
struct proc_chip *chip = get_chip(c->chip_id);
prlog(PR_INFO, "Configuring stopapi for IMC\n");