diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2018-07-17 18:05:39 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-07-27 19:16:37 +0800 |
commit | 5d258b48efbd0e28d9d0b5dc31de21050608e351 (patch) | |
tree | 3a1db84a2396477b7e07c0c598b0edeafd56e3a4 /drivers/net/ethernet/broadcom | |
parent | f7aee87822fdb7c43b9510e196cb74cc1bb9bb1e (diff) | |
download | talos-obmc-linux-5d258b48efbd0e28d9d0b5dc31de21050608e351.tar.gz talos-obmc-linux-5d258b48efbd0e28d9d0b5dc31de21050608e351.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/broadcom')
-rw-r--r-- | drivers/net/ethernet/broadcom/tg3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c index 3be87efdc93d..af8134d202ae 100644 --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c @@ -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; } } |