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
@@ -30,6 +30,7 @@
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/cache.h>
|
||||
#include <linux/crc32.h>
|
||||
#include <linux/crc32poly.h>
|
||||
#include <linux/mii.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/delay.h>
|
||||
@@ -1078,7 +1079,7 @@ static void ks_stop_rx(struct ks_net *ks)
|
||||
|
||||
} /* ks_stop_rx */
|
||||
|
||||
static unsigned long const ethernet_polynomial = 0x04c11db7U;
|
||||
static unsigned long const ethernet_polynomial = CRC32_POLY_BE;
|
||||
|
||||
static unsigned long ether_gen_crc(int length, u8 *data)
|
||||
{
|
||||
|
Reference in New Issue
Block a user