git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rmap: fix the comment for try_to_unmap_anon
[safe/jmp/linux-2.6]
/
lib
/
checksum.c
diff --git
a/lib/checksum.c
b/lib/checksum.c
index
b08c2d0
..
0975087
100644
(file)
--- a/
lib/checksum.c
+++ b/
lib/checksum.c
@@
-57,9
+57,9
@@
static unsigned int do_csum(const unsigned char *buff, int len)
odd = 1 & (unsigned long) buff;
if (odd) {
#ifdef __LITTLE_ENDIAN
- result = *buff;
-#else
result += (*buff << 8);
+#else
+ result = *buff;
#endif
len--;
buff++;