beeceem: Replace C99 comments with C89 ones and remove unneeded comments in InterfaceRx.c
authorMatthias Oefelein <ma.oefelein@arcor.de>
Wed, 8 Jan 2014 22:15:10 +0000 (23:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2014 23:59:27 +0000 (15:59 -0800)
This patch replaces C99-style with C89-style comments.
Additionally, code fragments that have been commented out are removed;
the same applies to meaningless comments.

Signed-off-by: Matthias Oefelein <ma.oefelein@arcor.de>
Signed-off-by: Ralph Mueck <linux-kernel@rmueck.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/InterfaceRx.c

index b556d7314dea2054bd5c57e51fe1034a1133a572..11008173f915e09a182e7a5d7d1b172213f55a29 100644 (file)
@@ -41,7 +41,6 @@ static void read_bulk_callback(struct urb *urb)
        int QueueIndex = NO_OF_QUEUES + 1;
        UINT uiIndex = 0;
        int process_done = 1;
-       //int idleflag = 0 ;
        struct bcm_usb_rcb *pRcb = (struct bcm_usb_rcb *)urb->context;
        struct bcm_interface_adapter *psIntfAdapter = pRcb->psIntfAdapter;
        struct bcm_mini_adapter *Adapter = psIntfAdapter->psAdapter;
@@ -101,7 +100,7 @@ static void read_bulk_callback(struct urb *urb)
                        bHeaderSupressionEnabled & Adapter->bPHSEnabled;
        }
 
-       skb = dev_alloc_skb(pLeader->PLength + SKB_RESERVE_PHS_BYTES + SKB_RESERVE_ETHERNET_HEADER);//2   //2 for allignment
+       skb = dev_alloc_skb(pLeader->PLength + SKB_RESERVE_PHS_BYTES + SKB_RESERVE_ETHERNET_HEADER);
        if (!skb) {
                BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "NO SKBUFF!!! Dropping the Packet");
                atomic_dec(&psIntfAdapter->uNumRcbUsed);
@@ -190,7 +189,7 @@ static int ReceiveRcb(struct bcm_interface_adapter *psIntfAdapter, struct bcm_us
                retval = usb_submit_urb(urb, GFP_ATOMIC);
                if (retval) {
                        BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_RX, RX_DPC, DBG_LVL_ALL, "failed submitting read urb, error %d", retval);
-                       //if this return value is because of pipe halt. need to clear this.
+                       /* if this return value is because of pipe halt. need to clear this. */
                        if (retval == -EPIPE) {
                                psIntfAdapter->psAdapter->bEndPointHalted = TRUE;
                                wake_up(&psIntfAdapter->psAdapter->tx_packet_wait_queue);
@@ -220,15 +219,12 @@ bool InterfaceRx(struct bcm_interface_adapter *psIntfAdapter)
        USHORT RxDescCount = NUM_RX_DESC - atomic_read(&psIntfAdapter->uNumRcbUsed);
        struct bcm_usb_rcb *pRcb = NULL;
 
-//     RxDescCount = psIntfAdapter->psAdapter->CurrNumRecvDescs -
-//                             psIntfAdapter->psAdapter->PrevNumRecvDescs;
        while (RxDescCount) {
                pRcb = GetBulkInRcb(psIntfAdapter);
                if (pRcb == NULL) {
                        BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_PRINTK, 0, 0, "Unable to get Rcb pointer");
                        return false;
                }
-               //atomic_inc(&psIntfAdapter->uNumRcbUsed);
                ReceiveRcb(psIntfAdapter, pRcb);
                RxDescCount--;
        }
This page took 0.053456 seconds and 5 git commands to generate.