diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2014-11-19 03:58:10 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-11-24 01:45:42 -0500 |
commit | dd2adea415f108da37c801d1af384ae7cdf46dce (patch) | |
tree | 6fa7a6fae3c8e4541ca42c8cbbc4f36ead58c869 | |
parent | 0845bb721ebb7b88da4dfe3f3ece67963efc006f (diff) |
MIPS: lib: memset: Clean up some MIPS{EL,EB} ifdefery
The toolchain defines exactly one of __MIPSEB__ and
__MIPSEL__. As a result, simplify the ifdefery a little bit.
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8522/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/lib/memset.S | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/mips/lib/memset.S b/arch/mips/lib/memset.S index 7b0e5462ca51..c8fe6b1968fb 100644 --- a/arch/mips/lib/memset.S +++ b/arch/mips/lib/memset.S | |||
@@ -114,8 +114,7 @@ | |||
114 | R10KCBARRIER(0(ra)) | 114 | R10KCBARRIER(0(ra)) |
115 | #ifdef __MIPSEB__ | 115 | #ifdef __MIPSEB__ |
116 | EX(LONG_S_L, a1, (a0), .Lfirst_fixup\@) /* make word/dword aligned */ | 116 | EX(LONG_S_L, a1, (a0), .Lfirst_fixup\@) /* make word/dword aligned */ |
117 | #endif | 117 | #else |
118 | #ifdef __MIPSEL__ | ||
119 | EX(LONG_S_R, a1, (a0), .Lfirst_fixup\@) /* make word/dword aligned */ | 118 | EX(LONG_S_R, a1, (a0), .Lfirst_fixup\@) /* make word/dword aligned */ |
120 | #endif | 119 | #endif |
121 | PTR_SUBU a0, t0 /* long align ptr */ | 120 | PTR_SUBU a0, t0 /* long align ptr */ |
@@ -164,8 +163,7 @@ | |||
164 | R10KCBARRIER(0(ra)) | 163 | R10KCBARRIER(0(ra)) |
165 | #ifdef __MIPSEB__ | 164 | #ifdef __MIPSEB__ |
166 | EX(LONG_S_R, a1, -1(a0), .Llast_fixup\@) | 165 | EX(LONG_S_R, a1, -1(a0), .Llast_fixup\@) |
167 | #endif | 166 | #else |
168 | #ifdef __MIPSEL__ | ||
169 | EX(LONG_S_L, a1, -1(a0), .Llast_fixup\@) | 167 | EX(LONG_S_L, a1, -1(a0), .Llast_fixup\@) |
170 | #endif | 168 | #endif |
171 | 1: jr ra | 169 | 1: jr ra |