Skip to content

Commit

Permalink
x86: coding style fixes to arch/x86/lib/memmove_64.c
Browse files Browse the repository at this point in the history
After the patch:

  total: 0 errors, 0 warnings, 21 lines checked

no code changed:

arch/x86/lib/memmove_64.o:
   text    data     bss     dec     hex filename
    116       0       0     116      74 memmove_64.o.before
    116       0       0     116      74 memmove_64.o.after
md5:
2d6b0951cafb86a11a222cdd70f6104f  memmove_64.o.before.asm
2d6b0951cafb86a11a222cdd70f6104f  memmove_64.o.after.asm

Signed-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Paolo Ciarrocchi authored and Ingo Molnar committed Apr 17, 2008
1 parent 87253d1 commit e940659
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/x86/lib/memmove_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
#include <linux/module.h>

#undef memmove
void *memmove(void * dest,const void *src,size_t count)
void *memmove(void *dest, const void *src, size_t count)
{
if (dest < src) {
return memcpy(dest,src,count);
if (dest < src) {
return memcpy(dest, src, count);
} else {
char *p = dest + count;
const char *s = src + count;
while (count--)
*--p = *--s;
}
return dest;
}
}
EXPORT_SYMBOL(memmove);

0 comments on commit e940659

Please sign in to comment.