lpfc: Use && instead of & for boolean expression
Subsystems (2)
PATCH 1/1 lpfc: Use && instead of & for boolean expression
Use logical instead of bitwise AND.
Signed-off-by Sebastian Herbszt <[email protected]>
---
drivers/scsi/lpfc/lpfc_hbadisc.c +1 -1
@@ -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);/*
Reviewed-by James Smart <[email protected]>
Thanks
-- james
Quoted 17 lines · Sebastian Herbszt
Use logical instead of bitwise AND.
Signed-off-by Sebastian Herbszt <[email protected]>---
diff -urp
a/drivers/scsi/lpfc/lpfc_hbadisc.cb/drivers/scsi/lpfc/lpfc_hbadisc.cdrivers/scsi/lpfc/lpfc_hbadisc.c +1
-1@@ -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);/*