net: ethernet: Use existing define with polynomial
Do not define again the polynomial but use header with existing define. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
committed by
Herbert Xu
parent
f7aee87822
commit
5d258b48ef
@ -50,6 +50,7 @@
|
||||
#include <linux/ssb/ssb_driver_gige.h>
|
||||
#include <linux/hwmon.h>
|
||||
#include <linux/hwmon-sysfs.h>
|
||||
#include <linux/crc32poly.h>
|
||||
|
||||
#include <net/checksum.h>
|
||||
#include <net/ip.h>
|
||||
@ -9707,7 +9708,7 @@ static inline u32 calc_crc(unsigned char *buf, int len)
|
||||
reg >>= 1;
|
||||
|
||||
if (tmp)
|
||||
reg ^= 0xedb88320;
|
||||
reg ^= CRC32_POLY_LE;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user