X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib_generic%2Fcrc32.c;h=df0dbca346634360c035a19312843e6cf3fbcf16;hb=5b0b2b6fc9fe22e3864c2a57316d91a2507ec215;hp=828341350226e2bf68535e597fdb0055677db693;hpb=fb883a521e04437acfe989de3e152b2e4866856b;p=u-boot diff --git a/lib_generic/crc32.c b/lib_generic/crc32.c index 8283413502..df0dbca346 100644 --- a/lib_generic/crc32.c +++ b/lib_generic/crc32.c @@ -9,7 +9,7 @@ */ #ifndef USE_HOSTCC /* Shut down "ANSI does not permit..." warnings */ -#include /* to get command definitions like CFG_CMD_JFFS2 */ +#include #endif #include "zlib.h" @@ -171,9 +171,9 @@ uLong ZEXPORT crc32(crc, buf, len) return crc ^ 0xffffffffL; } -#if (CONFIG_COMMANDS & CFG_CMD_JFFS2) \ - || (CONFIG_COMMANDS & CFG_CMD_NAND) && !defined(CFG_NAND_LEGACY) - +#if defined(CONFIG_CMD_JFFS2) || \ + (defined(CONFIG_CMD_NAND) \ + && !defined(CFG_NAND_LEGACY)) /* No ones complement version. JFFS2 (and other things ?) * don't use ones compliment in their CRC calculations. @@ -196,4 +196,4 @@ uLong ZEXPORT crc32_no_comp(uLong crc, const Bytef *buf, uInt len) return crc; } -#endif /* CFG_CMD_JFFS2 */ +#endif