diff options
author | Jan Engelhardt <jengelh@computergmbh.de> | 2008-01-30 07:33:23 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:23 -0500 |
commit | ade1af77129dea6e335b525ed3be3b846bc1ec13 (patch) | |
tree | 0fee8803a8145ef9935212c31df59bb339a78811 /arch/x86/boot/compressed/misc_32.c | |
parent | d729ab35ee1367b7690458ae9e050571cb055bd3 (diff) |
x86: remove unneded casts
x86: remove unneeded casts
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/boot/compressed/misc_32.c')
-rw-r--r-- | arch/x86/boot/compressed/misc_32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/boot/compressed/misc_32.c b/arch/x86/boot/compressed/misc_32.c index 9103652058c4..5a0281c81edf 100644 --- a/arch/x86/boot/compressed/misc_32.c +++ b/arch/x86/boot/compressed/misc_32.c | |||
@@ -285,7 +285,7 @@ static void putstr(const char *s) | |||
285 | static void* memset(void* s, int c, unsigned n) | 285 | static void* memset(void* s, int c, unsigned n) |
286 | { | 286 | { |
287 | int i; | 287 | int i; |
288 | char *ss = (char*)s; | 288 | char *ss = s; |
289 | 289 | ||
290 | for (i=0;i<n;i++) ss[i] = c; | 290 | for (i=0;i<n;i++) ss[i] = c; |
291 | return s; | 291 | return s; |
@@ -294,7 +294,8 @@ static void* memset(void* s, int c, unsigned n) | |||
294 | static void* memcpy(void* dest, const void* src, unsigned n) | 294 | static void* memcpy(void* dest, const void* src, unsigned n) |
295 | { | 295 | { |
296 | int i; | 296 | int i; |
297 | char *d = (char *)dest, *s = (char *)src; | 297 | const char *s = src; |
298 | char *d = dest; | ||
298 | 299 | ||
299 | for (i=0;i<n;i++) d[i] = s[i]; | 300 | for (i=0;i<n;i++) d[i] = s[i]; |
300 | return dest; | 301 | return dest; |