diff options
author | Dan Carpenter <error27@gmail.com> | 2011-02-15 15:33:13 -0600 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2011-02-18 12:34:38 -0600 |
commit | 382be668c5a284844f9dcbb5b1cb8ffba2386d80 (patch) | |
tree | f32e381380abebd99a3ee77566efc494541e2347 /drivers | |
parent | ba95e2ac6bfeb9af92153058a353fc47e1addc02 (diff) | |
download | kernel_goldelico_gta04-382be668c5a284844f9dcbb5b1cb8ffba2386d80.zip kernel_goldelico_gta04-382be668c5a284844f9dcbb5b1cb8ffba2386d80.tar.gz kernel_goldelico_gta04-382be668c5a284844f9dcbb5b1cb8ffba2386d80.tar.bz2 |
[SCSI] hpsa: fix bad comparison
'!' has higher precedence than '&'. CFGTBL_ChangeReq is 0x1 so the
original code is equivelent to if (!doorbell_value) {...
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/hpsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index eb6938f..c30591f 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -3614,7 +3614,7 @@ static void __devinit hpsa_wait_for_mode_change_ack(struct ctlr_info *h) spin_lock_irqsave(&h->lock, flags); doorbell_value = readl(h->vaddr + SA5_DOORBELL); spin_unlock_irqrestore(&h->lock, flags); - if (!doorbell_value & CFGTBL_ChangeReq) + if (!(doorbell_value & CFGTBL_ChangeReq)) break; /* delay and try again */ usleep_range(10000, 20000); |