diff options
author | Sebastian Herbszt <herbszt@gmx.de> | 2015-07-22 10:53:22 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-08-26 16:35:07 -0700 |
commit | b103918a5f21a51d12018a09919617687e584384 (patch) | |
tree | 963d0fa0fde159b76ff0258363fcd3514f133440 /drivers/scsi/lpfc | |
parent | 5155ce5f8395730f681fe48cdc8867838e3a3f2c (diff) |
lpfc: Use && instead of & for boolean expression
Use logical instead of bitwise AND.
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Reviewed-by: James Smart <james.smart@avagotech.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_hbadisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c index ce96d5bf8ae7..759cbebed7c7 100644 --- a/drivers/scsi/lpfc/lpfc_hbadisc.c +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c @@ -701,7 +701,7 @@ lpfc_work_done(struct lpfc_hba *phba) HA_RXMASK)); } } - if ((phba->sli_rev == LPFC_SLI_REV4) & + if ((phba->sli_rev == LPFC_SLI_REV4) && (!list_empty(&pring->txq))) lpfc_drain_txq(phba); /* |