mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
staging: vt6655: delete SndEvt_ToAPI code
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>
This commit is contained in:
parent
586e8b6845
commit
4a2bc3bdff
1 changed files with 2 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue