summaryrefslogtreecommitdiffstats
path: root/common/crc16.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2006-07-21 11:56:05 +0200
committerWolfgang Denk <wd@pollux.denx.de>2006-07-21 11:56:05 +0200
commitb9365a26a1030ce13f2c5bb3619d721750b9e409 (patch)
tree938aaf2f2ccafd1c49c8459241c5112b387a2060 /common/crc16.c
parent87a5c73d66beee8cc4d3b179114da89bf8e09791 (diff)
downloadu-boot-b9365a26a1030ce13f2c5bb3619d721750b9e409.tar.gz
u-boot-b9365a26a1030ce13f2c5bb3619d721750b9e409.tar.xz
u-boot-b9365a26a1030ce13f2c5bb3619d721750b9e409.zip
Code cleanup
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;
}