Skip to contentSkip to conversation

drivers/net/ne.c: fix warning with -Wundef

PATCH New Adrian Bunk 1 participant 1 message Jul 22, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/net/ne.c: fix warning with -Wundef

This patch fixes the following warning with -Wundef:

<-- snip -->

...
CC drivers/net/ne.o
drivers/net/ne.c:134:7: warning: "CONFIG_PLAT_OAKS32R" is not defined
...

<-- snip -->

drivers/net/ne.c renamed from drivers/net/ne.c.old +1 -1
@@ -131,7 +131,7 @@
 
 #ifdef CONFIG_PLAT_MAPPI
 #  define DCR_VAL 0x4b
-#elif CONFIG_PLAT_OAKS32R
+#elif defined(CONFIG_PLAT_OAKS32R)
 #  define DCR_VAL 0x48
 #else
 #  define DCR_VAL 0x49