Staging: rt2870: rtusb_data.c: Checkpatch cleanup
authorAndrea Gelmini <andrea.gelmini@gelma.net>
Sun, 28 Feb 2010 23:28:44 +0000 (00:28 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:35:29 +0000 (11:35 -0700)
drivers/staging/rt2870/common/rtusb_data.c:127: ERROR: return is not a function, parentheses are not required
drivers/staging/rt2870/common/rtusb_data.c:141: ERROR: return is not a function, parentheses are not required
drivers/staging/rt2870/common/rtusb_data.c:154: ERROR: space prohibited before that close parenthesis ')'
drivers/staging/rt2870/common/rtusb_data.c:204: ERROR: space prohibited after that '&' (ctx:VxW)

Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rt2870/common/rtusb_data.c

index 4583764c78d2e7bf02afd3377977f09b3183ec09..69368862217c38162d88e3f5d53824c0685e0932 100644 (file)
@@ -124,7 +124,7 @@ int RTUSBFreeDescriptorRequest(struct rt_rtmp_adapter *pAd,
        }
        RTMP_IRQ_UNLOCK(&pAd->TxContextQueueLock[BulkOutPipeId], IrqFlags);
 
-       return (Status);
+       return Status;
 }
 
 int RTUSBFreeDescriptorRelease(struct rt_rtmp_adapter *pAd,
@@ -138,7 +138,7 @@ int RTUSBFreeDescriptorRelease(struct rt_rtmp_adapter *pAd,
        pHTTXContext->bCurWriting = FALSE;
        RTMP_IRQ_UNLOCK(&pAd->TxContextQueueLock[BulkOutPipeId], IrqFlags);
 
-       return (NDIS_STATUS_SUCCESS);
+       return NDIS_STATUS_SUCCESS;
 }
 
 BOOLEAN RTUSBNeedQueueBackForAgg(struct rt_rtmp_adapter *pAd, u8 BulkOutPipeId)
@@ -151,7 +151,7 @@ BOOLEAN RTUSBNeedQueueBackForAgg(struct rt_rtmp_adapter *pAd, u8 BulkOutPipeId)
 
        RTMP_IRQ_LOCK(&pAd->TxContextQueueLock[BulkOutPipeId], IrqFlags);
        if ((pHTTXContext->IRPPending ==
-            TRUE) /*&& (pAd->TxSwQueue[BulkOutPipeId].Number == 0) */ ) {
+            TRUE) /*&& (pAd->TxSwQueue[BulkOutPipeId].Number == 0) */) {
                if ((pHTTXContext->CurWritePosition <
                     pHTTXContext->ENextBulkOutPosition)
                    &&
@@ -201,7 +201,7 @@ void RTUSBRejectPendingPackets(struct rt_rtmp_adapter *pAd)
        for (Index = 0; Index < 4; Index++) {
                NdisAcquireSpinLock(&pAd->TxSwQueueLock[Index]);
                while (pAd->TxSwQueue[Index].Head != NULL) {
-                       pQueue = (struct rt_queue_header *)& (pAd->TxSwQueue[Index]);
+                       pQueue = (struct rt_queue_header *)&(pAd->TxSwQueue[Index]);
                        pEntry = RemoveHeadQueue(pQueue);
                        pPacket = QUEUE_ENTRY_TO_PACKET(pEntry);
                        RELEASE_NDIS_PACKET(pAd, pPacket, NDIS_STATUS_FAILURE);