projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/checksum: fix one more thinko
[firefly-linux-kernel-4.4.55.git]
/
lib
/
checksum.c
diff --git
a/lib/checksum.c
b/lib/checksum.c
index b08c2d059024d01fa7ac3b1408d4ed8f22649cf0..097508732f34fdbb9de955509685f43df2feba32 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++;