patch-1.3.22 linux/drivers/scsi/aha1542.c

Next file: linux/drivers/scsi/eata.c
Previous file: linux/drivers/scsi/README.st
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.21/linux/drivers/scsi/aha1542.c linux/drivers/scsi/aha1542.c
@@ -155,10 +155,10 @@
 {
   unsigned long flags = 0;
   
+  save_flags(flags);
   if(len == 1) {
     while(1==1){
 	WAIT(STATUS(base), CDF, 0, CDF);
-	save_flags(flags);
 	cli();
 	if(inb(STATUS(base)) & CDF) {restore_flags(flags); continue;}
 	outb(*cmdp, DATA(base));
@@ -166,7 +166,6 @@
 	return 0;
       }
   } else {
-    save_flags(flags);
     cli();
     while (len--)
       {

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected] with Sam's (original) version
of this