From 6c45e7fd6c1355e63f5e5732f58af5ba4e33bb84 Mon Sep 17 00:00:00 2001 From: Andres More Date: Mon, 12 Jul 2010 13:47:47 -0300 Subject: [PATCH] --- yaml --- r: 205899 b: refs/heads/master c: 68746744b123045228a860bfb9fa21ae4688be01 h: refs/heads/master i: 205897: 29f669befbaa8757cea270df4334b40685215ec4 205895: 743cb20e03d14685c4a5f2b1ca66843a5c2c79f3 v: v3 --- [refs] | 2 +- trunk/drivers/staging/vt6656/iwctl.c | 30 +++----------------------- trunk/drivers/staging/vt6656/ttype.h | 5 ----- trunk/drivers/staging/vt6656/usbpipe.c | 18 ---------------- 4 files changed, 4 insertions(+), 51 deletions(-) diff --git a/[refs] b/[refs] index 036a090bfcf1..2aa2ff774687 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e1669ed0d4424f406120e9d8fad8a9935bce340c +refs/heads/master: 68746744b123045228a860bfb9fa21ae4688be01 diff --git a/trunk/drivers/staging/vt6656/iwctl.c b/trunk/drivers/staging/vt6656/iwctl.c index 67db85a19d18..384ce511e255 100644 --- a/trunk/drivers/staging/vt6656/iwctl.c +++ b/trunk/drivers/staging/vt6656/iwctl.c @@ -115,18 +115,9 @@ static int iwctl_commit(struct net_device *dev, void *wrq, char *extra) { -//2008-0409-02, by Einsn Liu -/* -#ifdef Safe_Close - PSDevice pDevice = (PSDevice)netdev_priv(dev); - if (!(pDevice->flags & DEVICE_FLAGS_OPENED)) - return -EINVAL; -#endif -*/ - DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWCOMMIT \n"); + DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWCOMMIT\n"); return 0; - } /* @@ -255,14 +246,7 @@ int iwctl_giwscan(struct net_device *dev, long ldBm; char buf[MAX_WPA_IE_LEN * 2 + 30]; -//2008-0409-02, by Einsn Liu -/* -#ifdef Safe_Close - if (!(pDevice->flags & DEVICE_FLAGS_OPENED)) - return -EINVAL; -#endif -*/ - DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWSCAN \n"); + DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWSCAN\n"); if (pMgmt->eScanState == WMAC_IS_SCANNING) { // In scanning.. @@ -583,16 +567,8 @@ int iwctl_giwrange(struct net_device *dev, struct iw_range *range = (struct iw_range *) extra; int i,k; BYTE abySupportedRates[13]= {0x02, 0x04, 0x0B, 0x16, 0x0c, 0x12, 0x18, 0x24, 0x30, 0x48, 0x60, 0x6C, 0x90}; -//2008-0409-02, by Einsn Liu -/* - #ifdef Safe_Close - PSDevice pDevice = (PSDevice)netdev_priv(dev); - if (!(pDevice->flags & DEVICE_FLAGS_OPENED)) - return -EINVAL; -#endif - */ - DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWRANGE \n"); + DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWRANGE\n"); if (wrq->pointer) { wrq->length = sizeof(struct iw_range); memset(range, 0, sizeof(struct iw_range)); diff --git a/trunk/drivers/staging/vt6656/ttype.h b/trunk/drivers/staging/vt6656/ttype.h index 342577314c3b..a9f4a16d8239 100644 --- a/trunk/drivers/staging/vt6656/ttype.h +++ b/trunk/drivers/staging/vt6656/ttype.h @@ -31,11 +31,6 @@ /******* Common definitions and typedefs ***********************************/ -//2007-0814-01by MikeLiu -#ifndef Safe_Close -#define Safe_Close -#endif - //2008-0131-02by MikeLiu #ifndef Adhoc_STA #define Adhoc_STA diff --git a/trunk/drivers/staging/vt6656/usbpipe.c b/trunk/drivers/staging/vt6656/usbpipe.c index 8c7b3afe44ad..bb79ccf3953d 100644 --- a/trunk/drivers/staging/vt6656/usbpipe.c +++ b/trunk/drivers/staging/vt6656/usbpipe.c @@ -381,18 +381,6 @@ PIPEnsInterruptRead( // Now that we have created the urb, we will send a // request to the USB device object. // -#ifndef Safe_Close - usb_fill_int_urb(pDevice->pInterruptURB, - pDevice->usb, - usb_rcvintpipe(pDevice->usb, 1), - (void *) pDevice->intBuf.pDataBuf, - MAX_INTERRUPT_SIZE, - s_nsInterruptUsbIoCompleteRead, - pDevice, - pDevice->int_interval - ); -#else - pDevice->pInterruptURB->interval = pDevice->int_interval; usb_fill_bulk_urb(pDevice->pInterruptURB, @@ -402,7 +390,6 @@ usb_fill_bulk_urb(pDevice->pInterruptURB, MAX_INTERRUPT_SIZE, s_nsInterruptUsbIoCompleteRead, pDevice); -#endif ntStatus = usb_submit_urb(pDevice->pInterruptURB, GFP_ATOMIC); if (ntStatus != 0) { @@ -483,7 +470,6 @@ s_nsInterruptUsbIoCompleteRead( if (pDevice->fKillEventPollingThread != TRUE) { - #ifdef Safe_Close usb_fill_bulk_urb(pDevice->pInterruptURB, pDevice->usb, usb_rcvbulkpipe(pDevice->usb, 1), @@ -496,10 +482,6 @@ s_nsInterruptUsbIoCompleteRead( if (ntStatus != 0) { DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Submit int URB failed %d\n", ntStatus); } - - #else - tasklet_schedule(&pDevice->EventWorkItem); - #endif } // // We return STATUS_MORE_PROCESSING_REQUIRED so that the completion