mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[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:
parent
a5cfc1ec58
commit
906d66df18
4 changed files with 9 additions and 26 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue