]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
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 ce96d5bf8ae7d8a3c2b3b2fc538e38c7a8689d0d..759cbebed7c73a6ad48177ab0c422cb9217e9acf 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);
                /*