X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=lib_generic%2Fcrc32.c;h=b27048ceebf2f07075457aedc5f1b0a3cb6db381;hb=d43bc3d2d09022bcffa1302b8f51e7fabe2dc68a;hp=b6a7a91620f130f3198fc22fc3fc272f586f10ce;hpb=28ac6719108e989429de2b3dfa90312ba7c4d27b;p=karo-tx-uboot.git diff --git a/lib_generic/crc32.c b/lib_generic/crc32.c index b6a7a91620..b27048ceeb 100644 --- a/lib_generic/crc32.c +++ b/lib_generic/crc32.c @@ -17,7 +17,7 @@ #if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG) #include #endif -#include "zlib.h" +#include "u-boot/zlib.h" #define local static #define ZEXPORT /* empty */ @@ -172,9 +172,7 @@ uint32_t ZEXPORT crc32 (uint32_t crc, const Bytef *buf, uInt len) return crc ^ 0xffffffffL; } -#if defined(CONFIG_CMD_JFFS2) || \ - (defined(CONFIG_CMD_NAND) \ - && !defined(CONFIG_NAND_LEGACY)) +#if defined(CONFIG_CMD_JFFS2) || defined(CONFIG_CMD_NAND) /* No ones complement version. JFFS2 (and other things ?) * don't use ones compliment in their CRC calculations.