summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSebastian Herbszt <herbszt@gmx.de>2015-07-22 10:53:22 +0200
committerJames Bottomley <JBottomley@Odin.com>2015-08-27 01:35:07 +0200
commitb103918a5f21a51d12018a09919617687e584384 (patch)
tree963d0fa0fde159b76ff0258363fcd3514f133440 /drivers
parentqla2xxx: Return the fabric command state for non-task management requests (diff)
downloadlinux-b103918a5f21a51d12018a09919617687e584384.tar.xz
linux-b103918a5f21a51d12018a09919617687e584384.zip
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')
-rw-r--r--drivers/scsi/lpfc/lpfc_hbadisc.c2
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);
/*