Skip to contentSkip to conversation

gdth: fix "&& 0xff" typos

PATCH In review [email protected] 1 participant 1 message Nov 9, 2006 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 26/26 gdth: fix "&& 0xff" typos

From: Alexey Dobriyan <[email protected]>

---

 drivers/scsi/gdth.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/gdth.c renamed from drivers/scsi/gdth.c~gdth-fix-0xff-typos +2 -2
diff -puN drivers/scsi/gdth.c~gdth-fix-0xff-typos drivers/scsi/gdth.c
@@ -3531,7 +3531,7 @@ static irqreturn_t gdth_interrupt(int ir
                 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 ir
             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
             {

_