瀏覽代碼

[SCSI] gdth: Fix && typos

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>
Jean Delvare 18 年之前
父節點
當前提交
107e716b34
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/scsi/gdth.c

+ 2 - 2
drivers/scsi/gdth.c

@@ -3531,7 +3531,7 @@ static irqreturn_t gdth_interrupt(int irq,void *dev_id)
                 IStatus &= ~0x80;
                 IStatus &= ~0x80;
 #ifdef INT_COAL
 #ifdef INT_COAL
                 if (coalesced)
                 if (coalesced)
-                    ha->status = pcs->ext_status && 0xffff;
+                    ha->status = pcs->ext_status & 0xffff;
                 else 
                 else 
 #endif
 #endif
                     ha->status = gdth_readw(&dp6m_ptr->i960r.status);
                     ha->status = gdth_readw(&dp6m_ptr->i960r.status);
@@ -3543,7 +3543,7 @@ static irqreturn_t gdth_interrupt(int irq,void *dev_id)
             if (coalesced) {    
             if (coalesced) {    
                 ha->info = pcs->info0;
                 ha->info = pcs->info0;
                 ha->info2 = pcs->info1;
                 ha->info2 = pcs->info1;
-                ha->service = (pcs->ext_status >> 16) && 0xffff;
+                ha->service = (pcs->ext_status >> 16) & 0xffff;
             } else
             } else
 #endif
 #endif
             {
             {