patch-2.4.21 linux-2.4.21/drivers/net/apne.c

Next file: linux-2.4.21/drivers/net/arcnet/arc-rawmode.c
Previous file: linux-2.4.21/drivers/net/amd8111e.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/net/apne.c linux-2.4.21/drivers/net/apne.c
@@ -113,9 +113,6 @@
 #define MANUAL_HWADDR5 0x9a
 */
 
-#define WORDSWAP(a) ( (((a)>>8)&0xff) | ((a)<<8) )
-
-
 static const char version[] =
     "apne.c:v1.1 7/10/98 Alain Malek (Alain.Malek@cryogen.ch)\n";
 
@@ -403,10 +400,9 @@
     }
 
     outb(ENISR_RDC, nic_base + NE_EN0_ISR);	/* Ack intr. */
-
-    hdr->count = WORDSWAP(hdr->count);
-
     ei_status.dmaing &= ~0x01;
+
+    le16_to_cpus(&hdr->count);
 }
 
 /* Block input and output, similar to the Crynwr packet driver.  If you

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)