diff options
Diffstat (limited to 'drivers/staging/vt6656/tether.c')
| -rw-r--r-- | drivers/staging/vt6656/tether.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/staging/vt6656/tether.c b/drivers/staging/vt6656/tether.c index 1db1e8419a9..2ef54f608cb 100644 --- a/drivers/staging/vt6656/tether.c +++ b/drivers/staging/vt6656/tether.c @@ -33,7 +33,6 @@  #include "device.h"  #include "tmacro.h" -#include "tcrc.h"  #include "tether.h"  /* @@ -51,11 +50,11 @@   */  bool ETHbIsBufferCrc32Ok(u8 * pbyBuffer, unsigned int cbFrameLength)  { -	u32 dwCRC; +	u32 n_crc = ~ether_crc_le(cbFrameLength - 4, pbyBuffer); -	dwCRC = CRCdwGetCrc32(pbyBuffer, cbFrameLength - 4); -	if (cpu_to_le32(*((u32 *)(pbyBuffer + cbFrameLength - 4))) != dwCRC) +	if (le32_to_cpu(*((__le32 *)(pbyBuffer + cbFrameLength - 4))) != n_crc)  		return false; +  	return true;  }  | 
