patch-2.4.25 linux-2.4.25/drivers/net/tokenring/olympic.c

Next file: linux-2.4.25/drivers/net/typhoon.c
Previous file: linux-2.4.25/drivers/net/tokenring/Config.in
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/drivers/net/tokenring/olympic.c linux-2.4.25/drivers/net/tokenring/olympic.c
@@ -457,14 +457,7 @@
 	printk("Before the open command \n");
 #endif	
 	do {
-		int i;
-
-		for(i=0;i<SRB_COMMAND_SIZE;i+=4)
-			writel(0,init_srb+i);
-		if(SRB_COMMAND_SIZE & 2)
-			writew(0,init_srb+(SRB_COMMAND_SIZE & ~3));
-		if(SRB_COMMAND_SIZE & 1)
-			writeb(0,init_srb+(SRB_COMMAND_SIZE & ~1));
+		memset_io(init_srb,0,SRB_COMMAND_SIZE);
 
 		writeb(SRB_OPEN_ADAPTER,init_srb) ; 	/* open */
 		writeb(OLYMPIC_CLEAR_RET_CODE,init_srb+2);

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