]> git.sur5r.net Git - u-boot/blobdiff - lib_generic/crc32.c
Fix JFFS2 compilation problem
[u-boot] / lib_generic / crc32.c
index 3db224a3649981bec3b5705014ed5467bd51c26f..3d99b69296c7e4504126b175a58176581ff57f08 100644 (file)
@@ -171,8 +171,8 @@ 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 (CONFIG_COMMANDS & CFG_CMD_JFFS2) || \
+       ((CONFIG_COMMANDS & CFG_CMD_NAND) && !defined(CFG_NAND_LEGACY))
 
 /* No ones complement version. JFFS2 (and other things ?)
  * don't use ones compliment in their CRC calculations.