]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[SCSI] gdth: Fix && typos
authorJean Delvare <khali@linux-fr.org>
Thu, 14 Dec 2006 21:40:00 +0000 (22:40 +0100)
committerAdrian Bunk <bunk@stusta.de>
Thu, 14 Dec 2006 21:40:00 +0000 (22:40 +0100)
Fix uses of "&&" where "&" was obviously intended instead.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/scsi/gdth.c

index 62e3cda859afccb44dda94dc9c2a6d2ab0a18d31..f6d44b6f1fb618a24e29641e3b88cd8acea1197e 100644 (file)
@@ -3404,7 +3404,7 @@ static irqreturn_t gdth_interrupt(int irq,void *dev_id,struct pt_regs *regs)
                 IStatus &= ~0x80;
 #ifdef INT_COAL
                 if (coalesced)
-                    ha->status = pcs->ext_status && 0xffff;
+                    ha->status = pcs->ext_status & 0xffff;
                 else 
 #endif
                     ha->status = gdth_readw(&dp6m_ptr->i960r.status);
@@ -3416,7 +3416,7 @@ static irqreturn_t gdth_interrupt(int irq,void *dev_id,struct pt_regs *regs)
             if (coalesced) {    
                 ha->info = pcs->info0;
                 ha->info2 = pcs->info1;
-                ha->service = (pcs->ext_status >> 16) && 0xffff;
+                ha->service = (pcs->ext_status >> 16) & 0xffff;
             } else
 #endif
             {