]> err.no Git - linux-2.6/commitdiff
[SCSI] gdth: Fix && typos
authorJean Delvare <khali@linux-fr.org>
Thu, 9 Nov 2006 20:45:09 +0000 (21:45 +0100)
committerJames Bottomley <jejb@mulgrave.(none)>
Fri, 10 Nov 2006 00:59:49 +0000 (09:59 +0900)
Fix uses of "&&" where "&" was obviously intended instead.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/gdth.c

index 4bc14ad92e2264f0828043414890544756f2eb93..4c698a71f66ff0b54c6dda5c3859f3b96ff04331 100644 (file)
@@ -3531,7 +3531,7 @@ static irqreturn_t gdth_interrupt(int irq,void *dev_id)
                 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);
@@ -3543,7 +3543,7 @@ static irqreturn_t gdth_interrupt(int irq,void *dev_id)
             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
             {