[ARM] 5232/1: Do not post-index STRT instruction in clear_user.S
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 29 Aug 2008 17:31:21 +0000 (18:31 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 1 Sep 2008 11:06:34 +0000 (12:06 +0100)
The last strnebt instruction has a post-index of 1 but the address
register is set to 0 in the next instruction, so no need for
post-indexing.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/lib/clear_user.S

index 81041a3f8d50e373f210d446a68701627bcc2fce..4d6bc71231f3a2da61bc2f88a6860ba18e074e59 100644 (file)
@@ -41,7 +41,7 @@ USER(         strplt  r2, [r0], #4)
 USER(          strnebt r2, [r0], #1)
 USER(          strnebt r2, [r0], #1)
                tst     r1, #1                  @ x1 x0 x1 x0 x1 x0 x1
-USER(          strnebt r2, [r0], #1)
+USER(          strnebt r2, [r0])
                mov     r0, #0
                ldmfd   sp!, {r1, pc}
 ENDPROC(__clear_user)