]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: vt6655: remove global variable wpa_Result
authorVladimir A. Nazarenko <naszar@ya.ru>
Thu, 9 Oct 2014 04:38:23 +0000 (15:38 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:30:13 +0000 (10:30 +0800)
This variable unused, so remove it.

Signed-off-by: Vladimir A. Nazarenko <naszar@ya.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c
drivers/staging/vt6655/ioctl.c

index ed5e712370074810449ebae3f6eed356a76cdb4b..ff8bd7a5db87948445fe4f3f2bf1f909770cc340 100644 (file)
@@ -1553,9 +1553,6 @@ static int  device_open(struct net_device *dev)
 {
        struct vnt_private *pDevice = netdev_priv(dev);
        int i;
-#ifdef WPA_SM_Transtatus
-       extern SWPAResult wpa_Result;
-#endif
 
        pDevice->rx_buf_sz = PKT_BUF_SZ;
        if (!device_init_rings(pDevice))
@@ -1567,11 +1564,6 @@ static int  device_open(struct net_device *dev)
                return i;
 
 #ifdef WPA_SM_Transtatus
-       memset(wpa_Result.ifname, 0, sizeof(wpa_Result.ifname));
-       wpa_Result.proto = 0;
-       wpa_Result.key_mgmt = 0;
-       wpa_Result.eap_type = 0;
-       wpa_Result.authenticated = false;
        pDevice->fWPA_Authened = false;
 #endif
        pr_debug("call device init rd0 ring\n");
index f8e990fcc6fdc2f694bdea7899bb2dfb687cbccc..628f5b2359c526b068717e326e30a404220b9e92 100644 (file)
 #include "wpactl.h"
 #include "rf.h"
 
-#ifdef WPA_SM_Transtatus
-SWPAResult wpa_Result;
-#endif
-
 int private_ioctl(struct vnt_private *pDevice, struct ifreq *rq)
 {
        PSCmdRequest    pReq = (PSCmdRequest)rq;