lpfc: Use && instead of & for boolean expression
authorSebastian Herbszt <herbszt@gmx.de>
Wed, 22 Jul 2015 08:53:22 +0000 (10:53 +0200)
committerJames Bottomley <JBottomley@Odin.com>
Wed, 26 Aug 2015 23:35:07 +0000 (16:35 -0700)
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>
drivers/scsi/lpfc/lpfc_hbadisc.c

index ce96d5b..759cbeb 100644 (file)
@@ -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);
                /*