aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/checksum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/checksum.c b/lib/checksum.c
index b08c2d059024..097508732f34 100644
--- a/lib/checksum.c
+++ b/lib/checksum.c
@@ -57,9 +57,9 @@ static unsigned int do_csum(const unsigned char *buff, int len)
57 odd = 1 & (unsigned long) buff; 57 odd = 1 & (unsigned long) buff;
58 if (odd) { 58 if (odd) {
59#ifdef __LITTLE_ENDIAN 59#ifdef __LITTLE_ENDIAN
60 result = *buff;
61#else
62 result += (*buff << 8); 60 result += (*buff << 8);
61#else
62 result = *buff;
63#endif 63#endif
64 len--; 64 len--;
65 buff++; 65 buff++;