diff --git a/board/esd/common/auto_update.c b/board/esd/common/auto_update.c
index 62f6c204340bc00c5ea2dd52ab1bfc437273561b..c4a09578784f87b7d1aeb9c69fb02484b1ad8d2b 100644
--- a/board/esd/common/auto_update.c
+++ b/board/esd/common/auto_update.c
@@ -24,10 +24,6 @@
 
 #include <common.h>
 
-#if defined(CONFIG_CMD_NAND) && !defined(CFG_NAND_LEGACY)
-#warning CFG_NAND_LEGACY not defined in a file using the legacy NAND support!
-#endif
-
 #include <command.h>
 #include <image.h>
 #include <asm/byteorder.h>