提交 4a2bc3bd 编写于 作者: V Vladimir A. Nazarenko 提交者: Greg Kroah-Hartman

staging: vt6655: delete SndEvt_ToAPI code

It's never enabled, so we can safely remove it.
Signed-off-by: NVladimir A. Nazarenko <naszar@ya.ru>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 586e8b68
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册