patch-2.4.0-test5 linux/include/asm-arm/arch-sa1100/irq.h

Next file: linux/include/asm-arm/arch-sa1100/keyboard.h
Previous file: linux/include/asm-arm/arch-sa1100/io.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test4/linux/include/asm-arm/arch-sa1100/irq.h linux/include/asm-arm/arch-sa1100/irq.h
@@ -143,7 +143,9 @@
 	int i;
 	unsigned long stat0, stat1;
 
-	while( (stat0 = INTSTATCLR0) && (stat1 = INTSTATCLR1) ){
+	for(;;) {
+		stat0 = INTSTATCLR0, stat1 = INTSTATCLR1;
+		if( !stat0 && !stat1 ) break;
 		if( stat0 )
 			for( i = 0; i < 32; i++ )
 				if( stat0 & (1<<i) )

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