staging: wilc1000: linux_wlan: remove unused defines
authorLeo Kim <leo.kim@atmel.com>
Thu, 5 Nov 2015 05:36:19 +0000 (14:36 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
This patch removes unused defines from linux_wlan.c file.
 - NM73131
 - PLAT_CLM9722
Two defines are support custom feature that don't used anymore.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c

index 105dbc809a5c004e5d5897bf623bf70ee29c98e5..432f0be99cc0ebff12ca6ee913471272a72770fa 100644 (file)
@@ -1534,15 +1534,9 @@ int wilc_netdev_init(struct wilc **wilc)
                nic = netdev_priv(ndev);
                memset(nic, 0, sizeof(perInterface_wlan_t));
 
-               if (i == 0) {
-               #if defined(NM73131)
-                       strcpy(ndev->name, "wilc_eth%d");
-               #elif defined(PLAT_CLM9722)
-                       strcpy(ndev->name, "eth%d");
-               #else
+               if (i == 0)
                        strcpy(ndev->name, "wlan%d");
-               #endif
-               } else
+               else
                        strcpy(ndev->name, "p2p%d");
 
                nic->u8IfIdx = g_linux_wlan->vif_num;