Skip to content

Commit

Permalink
imc: Remove extra parentheses in test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
shenki authored and stewartsmith committed May 4, 2018
1 parent 4216f2f commit cd2c3b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/imc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit cd2c3b0

Please sign in to comment.