diff --git a/include/configs/omap3_overo.h b/include/configs/omap3_overo.h
index e66f30655d67d864a79bcf1f1f21fdffc8c637da..b17e495f5f7915af44e75c8841932299a810e2a2 100644
--- a/include/configs/omap3_overo.h
+++ b/include/configs/omap3_overo.h
@@ -151,7 +151,7 @@
 			"run mmcboot;" \
 		"fi;" \
 		"if run loadzimage; then " \
-			"if test $fdtfile; then " \
+			"if test -z \"${fdtfile}\"; then " \
 				"setenv fdtfile omap3-${boardname}-${expansionname}.dtb;" \
 			"fi;" \
 			"if run loadfdt; then " \