patch-2.4.19 linux-2.4.19/include/asm-s390x/ebcdic.h

Next file: linux-2.4.19/include/asm-s390x/ide.h
Previous file: linux-2.4.19/include/asm-s390x/debug.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/include/asm-s390x/ebcdic.h linux-2.4.19/include/asm-s390x/ebcdic.h
@@ -24,7 +24,7 @@
 extern __inline__ void
 codepage_convert(const __u8 *codepage, volatile __u8 * addr, unsigned long nr)
 {
-	if (nr <= 0)
+	if (nr-- <= 0)
 		return;
         __asm__ __volatile__(
 		"   bras  1,1f\n"
@@ -34,7 +34,7 @@
 		"1: ahi   %1,-256\n"
 		"   jp    0b\n"
 		"   ex    %1,0(1)"
-		: "+&a" (addr), "+&a" (nr-1)
+		: "+&a" (addr), "+&a" (nr)
 		: "a" (codepage) : "cc", "memory", "1" );
 }
 

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