diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2018-07-17 18:05:41 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-07-27 19:16:38 +0800 |
commit | faa16bc404d72a5afb857c924c83a5f691f83386 (patch) | |
tree | 648913f535f4daffbbad1d7ad3a03c30d5952076 /lib/xz | |
parent | 9ecdb984195378be87e185c2dee80129c5cbf140 (diff) | |
download | linux-stable-faa16bc404d72a5afb857c924c83a5f691f83386.tar.gz linux-stable-faa16bc404d72a5afb857c924c83a5f691f83386.tar.bz2 linux-stable-faa16bc404d72a5afb857c924c83a5f691f83386.zip |
lib: 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 'lib/xz')
-rw-r--r-- | lib/xz/xz_crc32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/xz/xz_crc32.c b/lib/xz/xz_crc32.c index 34532d14fd4c..25a5d87e2e4c 100644 --- a/lib/xz/xz_crc32.c +++ b/lib/xz/xz_crc32.c @@ -15,6 +15,7 @@ * but they are bigger and use more memory for the lookup table. */ +#include <linux/crc32poly.h> #include "xz_private.h" /* @@ -29,7 +30,7 @@ STATIC_RW_DATA uint32_t xz_crc32_table[256]; XZ_EXTERN void xz_crc32_init(void) { - const uint32_t poly = 0xEDB88320; + const uint32_t poly = CRC32_POLY_LE; uint32_t i; uint32_t j; |