staging: vt6655: delete SndEvt_ToAPI code
authorVladimir A. Nazarenko <naszar@ya.ru>
Fri, 10 Oct 2014 01:27:01 +0000 (12:27 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:30:13 +0000 (10:30 +0800)
It's never enabled, so we can safely 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

index 6a77f0df1a63681ea44450995abd2037f61cda9d..c8f262f58c7b4f535d50e9d88574119d69385b4e 100644 (file)
@@ -2911,14 +2911,8 @@ static int  device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
 
        case IOCTL_CMD_SET:
 
-#ifdef SndEvt_ToAPI
-               if ((((PSCmdRequest)rq)->wCmdCode != WLAN_CMD_SET_EVT) &&
-                   !(pDevice->flags & DEVICE_FLAGS_OPENED))
-#else
-                       if (!(pDevice->flags & DEVICE_FLAGS_OPENED) &&
-                           (((PSCmdRequest)rq)->wCmdCode != WLAN_CMD_SET_WPA))
-#endif
-                       {
+               if (!(pDevice->flags & DEVICE_FLAGS_OPENED) &&
+                   (((PSCmdRequest)rq)->wCmdCode != WLAN_CMD_SET_WPA)) {
                                rc = -EFAULT;
                                break;
                        }