summaryrefslogtreecommitdiffstats
path: root/common/crc16.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/crc16.c')
-rw-r--r--common/crc16.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/crc16.c b/common/crc16.c
index 3cef106007..6904365e59 100644
--- a/common/crc16.c
+++ b/common/crc16.c
@@ -101,7 +101,7 @@ cyg_crc16(unsigned char *buf, int len)
cksum = 0;
for (i = 0; i < len; i++) {
- cksum = crc16_tab[((cksum>>8) ^ *buf++) & 0xFF] ^ (cksum << 8);
+ cksum = crc16_tab[((cksum>>8) ^ *buf++) & 0xFF] ^ (cksum << 8);
}
return cksum;
}
OpenPOWER on IntegriCloud