Skip to content

Commit

Permalink
[PATCH] pcmcia: documentation fix
Browse files Browse the repository at this point in the history
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]>
Jar authored and Linus Torvalds committed Jun 28, 2005
1 parent 2ad0a0a commit a9a5524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/pcmcia/devicetable.txt
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit a9a5524

Please sign in to comment.