Message ID | 20150722105322.00004f4b@localhost (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Reviewed-by: James Smart <james.smart@avagotech.com> Thanks -- james On 7/22/2015 4:53 AM, Sebastian Herbszt wrote: > Use logical instead of bitwise AND. > > Signed-off-by: Sebastian Herbszt <herbszt@gmx.de> > --- > > diff -urp a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c > --- a/drivers/scsi/lpfc/lpfc_hbadisc.c 2015-07-05 22:18:43.933739150 +0200 > +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c 2015-07-22 10:31:14.240209475 +0200 > @@ -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); > /* -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff -urp a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c --- a/drivers/scsi/lpfc/lpfc_hbadisc.c 2015-07-05 22:18:43.933739150 +0200 +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c 2015-07-22 10:31:14.240209475 +0200 @@ -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); /*
Use logical instead of bitwise AND. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de> --- -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html