Commit 4a2bc3bd authored by Vladimir A. Nazarenko's avatar Vladimir A. Nazarenko Committed by Greg Kroah-Hartman
Browse files

staging: vt6655: delete SndEvt_ToAPI code



It's never enabled, so we can safely remove it.

Signed-off-by: default avatarVladimir A. Nazarenko <naszar@ya.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 586e8b68
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -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
			{
		    (((PSCmdRequest)rq)->wCmdCode != WLAN_CMD_SET_WPA))	{
				rc = -EFAULT;
				break;
			}