[PATCH] crc32: replace bitreverse by bitrev32

This patch replaces bitreverse() by bitrev32.  The only users of bitreverse()
are crc32 itself and via-velocity.

Cc: Jeff Garzik <[email protected]>
Cc: Matt Domsch <[email protected]>
Signed-off-by: Akinobu Mita <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Akinobu Mita 2006-12-08 02:36:25 -08:00 • committed by Linus Torvalds
commit 906d66df18
4 changed files with 9 additions and 26 deletions

View file

@ -3132,7 +3132,7 @@ static u16 wol_calc_crc(int size, u8 * pattern, u8 *mask_pattern)
}
/* Finally, invert the result once to get the correct data */
crc = ~crc;
return bitreverse(crc) >> 16;
return bitrev32(crc) >> 16;
}
/**