Skip to contentSkip to conversation

gdth: Fix && typos

PATCH New Jean Delvare 1 participant 1 message Nov 9, 2006 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gdth: Fix && typos

Fix uses of "&&" where "&" was obviously intended instead.

---
 drivers/scsi/gdth.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/gdth.c +2 -2
@@ -3531,7 +3531,7 @@
                 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 @@
             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
             {
Signature · 1 line
Jean Delvare