diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2012-11-24 14:47:11 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-27 00:24:16 (GMT) |
commit | 179f823dab054f3301903042cf47ae3e27442484 (patch) | |
tree | 35c2df36ea0c643954a6acf3cc4ad00bf7c0037e /drivers/staging/vt6656/main_usb.c | |
parent | 7055a0751ae88b0f6e7997a70f323d370a6b4774 (diff) | |
download | linux-fsl-qoriq-179f823dab054f3301903042cf47ae3e27442484.tar.xz |
staging: vt6656: remove redundant IWEVCUSTOM events.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656/main_usb.c')
-rw-r--r-- | drivers/staging/vt6656/main_usb.c | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index 4a0f9dc..f33086d 100644 --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c @@ -722,17 +722,6 @@ vt6656_probe(struct usb_interface *intf, const struct usb_device_id *id) usb_device_reset(pDevice); - { - union iwreq_data wrqu; - memset(&wrqu, 0, sizeof(wrqu)); - wrqu.data.flags = RT_INSMOD_EVENT_FLAG; - wrqu.data.length = IFNAMSIZ; - wireless_send_event(pDevice->dev, - IWEVCUSTOM, - &wrqu, - pDevice->dev->name); - } - return 0; err_netdev: @@ -1052,15 +1041,8 @@ static int device_open(struct net_device *dev) { netif_stop_queue(pDevice->dev); pDevice->flags |= DEVICE_FLAGS_OPENED; -{ - union iwreq_data wrqu; - memset(&wrqu, 0, sizeof(wrqu)); - wrqu.data.flags = RT_UPDEV_EVENT_FLAG; - wireless_send_event(pDevice->dev, IWEVCUSTOM, &wrqu, NULL); -} - - DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "device_open success.. \n"); - return 0; + DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "device_open success..\n"); + return 0; free_all: device_free_frag_bufs(pDevice); @@ -1089,13 +1071,6 @@ static int device_close(struct net_device *dev) { if (pDevice == NULL) return -ENODEV; -{ - union iwreq_data wrqu; - memset(&wrqu, 0, sizeof(wrqu)); - wrqu.data.flags = RT_DOWNDEV_EVENT_FLAG; - wireless_send_event(pDevice->dev, IWEVCUSTOM, &wrqu, NULL); -} - if (pDevice->bLinkPass) { bScheduleCommand((void *) pDevice, WLAN_CMD_DISASSOCIATE, NULL); mdelay(30); @@ -1166,13 +1141,6 @@ static void vt6656_disconnect(struct usb_interface *intf) if (!device) return; - { - union iwreq_data req; - memset(&req, 0, sizeof(req)); - req.data.flags = RT_RMMOD_EVENT_FLAG; - wireless_send_event(device->dev, IWEVCUSTOM, &req, NULL); - } - usb_set_intfdata(intf, NULL); usb_put_dev(interface_to_usbdev(intf)); |