diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/lib/string.S | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/lib/string.S b/arch/powerpc/lib/string.S index 64e2e499e32..3ac0cd3a537 100644 --- a/arch/powerpc/lib/string.S +++ b/arch/powerpc/lib/string.S | |||
@@ -71,7 +71,7 @@ _GLOBAL(strcmp) | |||
71 | 71 | ||
72 | _GLOBAL(strncmp) | 72 | _GLOBAL(strncmp) |
73 | PPC_LCMPI r5,0 | 73 | PPC_LCMPI r5,0 |
74 | beqlr | 74 | ble- 2f |
75 | mtctr r5 | 75 | mtctr r5 |
76 | addi r5,r3,-1 | 76 | addi r5,r3,-1 |
77 | addi r4,r4,-1 | 77 | addi r4,r4,-1 |
@@ -82,6 +82,8 @@ _GLOBAL(strncmp) | |||
82 | beqlr 1 | 82 | beqlr 1 |
83 | bdnzt eq,1b | 83 | bdnzt eq,1b |
84 | blr | 84 | blr |
85 | 2: li r3,0 | ||
86 | blr | ||
85 | 87 | ||
86 | _GLOBAL(strlen) | 88 | _GLOBAL(strlen) |
87 | addi r4,r3,-1 | 89 | addi r4,r3,-1 |