mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
[PATCH] pcmcia: documentation fix
Fix example hash generator in Documentation. Signed-off-by: Dominik Brodowski <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
2ad0a0a793
commit
a9a55243d4
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ unsigned int crc32(unsigned char const *p, unsigned int len)
|
|||
{
|
||||
int i;
|
||||
unsigned int crc = 0;
|
||||
while (len--)
|
||||
while (len--) {
|
||||
crc ^= *p++;
|
||||
for (i = 0; i < 8; i++)
|
||||
crc = (crc >> 1) ^ ((crc & 1) ? 0xedb88320 : 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue