Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

beeceem: Replace C99 comments with C89 ones and remove unneeded comments in InterfaceRx.c

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>

authored by

Matthias Oefelein and committed by
Greg Kroah-Hartman
69cb4a8d b0303a83

+2 -6
+2 -6
drivers/staging/bcm/InterfaceRx.c
··· 41 41 int QueueIndex = NO_OF_QUEUES + 1; 42 42 UINT uiIndex = 0; 43 43 int process_done = 1; 44 - //int idleflag = 0 ; 45 44 struct bcm_usb_rcb *pRcb = (struct bcm_usb_rcb *)urb->context; 46 45 struct bcm_interface_adapter *psIntfAdapter = pRcb->psIntfAdapter; 47 46 struct bcm_mini_adapter *Adapter = psIntfAdapter->psAdapter; ··· 100 101 bHeaderSupressionEnabled & Adapter->bPHSEnabled; 101 102 } 102 103 103 - skb = dev_alloc_skb(pLeader->PLength + SKB_RESERVE_PHS_BYTES + SKB_RESERVE_ETHERNET_HEADER);//2 //2 for allignment 104 + skb = dev_alloc_skb(pLeader->PLength + SKB_RESERVE_PHS_BYTES + SKB_RESERVE_ETHERNET_HEADER); 104 105 if (!skb) { 105 106 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "NO SKBUFF!!! Dropping the Packet"); 106 107 atomic_dec(&psIntfAdapter->uNumRcbUsed); ··· 189 190 retval = usb_submit_urb(urb, GFP_ATOMIC); 190 191 if (retval) { 191 192 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_RX, RX_DPC, DBG_LVL_ALL, "failed submitting read urb, error %d", retval); 192 - //if this return value is because of pipe halt. need to clear this. 193 + /* if this return value is because of pipe halt. need to clear this. */ 193 194 if (retval == -EPIPE) { 194 195 psIntfAdapter->psAdapter->bEndPointHalted = TRUE; 195 196 wake_up(&psIntfAdapter->psAdapter->tx_packet_wait_queue); ··· 219 220 USHORT RxDescCount = NUM_RX_DESC - atomic_read(&psIntfAdapter->uNumRcbUsed); 220 221 struct bcm_usb_rcb *pRcb = NULL; 221 222 222 - // RxDescCount = psIntfAdapter->psAdapter->CurrNumRecvDescs - 223 - // psIntfAdapter->psAdapter->PrevNumRecvDescs; 224 223 while (RxDescCount) { 225 224 pRcb = GetBulkInRcb(psIntfAdapter); 226 225 if (pRcb == NULL) { 227 226 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_PRINTK, 0, 0, "Unable to get Rcb pointer"); 228 227 return false; 229 228 } 230 - //atomic_inc(&psIntfAdapter->uNumRcbUsed); 231 229 ReceiveRcb(psIntfAdapter, pRcb); 232 230 RxDescCount--; 233 231 }