Commit 1b42f1d9 authored by Matthias Oefelein's avatar Matthias Oefelein Committed by Greg Kroah-Hartman

beeceem: Fix missing spaces around operators and unwanted spaces around semicolons in InterfaceRx.c

Checkpatch reports missing spaces around operators; this patch
introduces spaces where needed.
Spaces before semicolons are prohibited by the official coding style
guidelines, those have been fixed as well.
Signed-off-by: default avatarMatthias Oefelein <ma.oefelein@arcor.de>
Signed-off-by: default avatarRalph Mueck <linux-kernel@rmueck.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4dcce62e
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
static int SearchVcid(struct bcm_mini_adapter *Adapter,unsigned short usVcid) static int SearchVcid(struct bcm_mini_adapter *Adapter,unsigned short usVcid)
{ {
int iIndex=0; int iIndex = 0;
for(iIndex=(NO_OF_QUEUES-1);iIndex>=0;iIndex--) for(iIndex = (NO_OF_QUEUES-1); iIndex >= 0; iIndex--)
if(Adapter->PackInfo[iIndex].usVCID_Value == usVcid) if(Adapter->PackInfo[iIndex].usVCID_Value == usVcid)
return iIndex; return iIndex;
return NO_OF_QUEUES+1; return NO_OF_QUEUES+1;
...@@ -24,7 +24,7 @@ GetBulkInRcb(struct bcm_interface_adapter *psIntfAdapter) ...@@ -24,7 +24,7 @@ GetBulkInRcb(struct bcm_interface_adapter *psIntfAdapter)
index = atomic_read(&psIntfAdapter->uCurrRcb); index = atomic_read(&psIntfAdapter->uCurrRcb);
pRcb = &psIntfAdapter->asUsbRcb[index]; pRcb = &psIntfAdapter->asUsbRcb[index];
pRcb->bUsed = TRUE; pRcb->bUsed = TRUE;
pRcb->psIntfAdapter= psIntfAdapter; pRcb->psIntfAdapter = psIntfAdapter;
BCM_DEBUG_PRINT(psIntfAdapter->psAdapter,DBG_TYPE_RX, RX_DPC, DBG_LVL_ALL, "Got Rx desc %d used %d", BCM_DEBUG_PRINT(psIntfAdapter->psAdapter,DBG_TYPE_RX, RX_DPC, DBG_LVL_ALL, "Got Rx desc %d used %d",
index, atomic_read(&psIntfAdapter->uNumRcbUsed)); index, atomic_read(&psIntfAdapter->uNumRcbUsed));
index = (index + 1) % MAXIMUM_USB_RCB; index = (index + 1) % MAXIMUM_USB_RCB;
...@@ -40,7 +40,7 @@ static void read_bulk_callback(struct urb *urb) ...@@ -40,7 +40,7 @@ static void read_bulk_callback(struct urb *urb)
struct sk_buff *skb = NULL; struct sk_buff *skb = NULL;
bool bHeaderSupressionEnabled = false; bool bHeaderSupressionEnabled = false;
int QueueIndex = NO_OF_QUEUES + 1; int QueueIndex = NO_OF_QUEUES + 1;
UINT uiIndex=0; UINT uiIndex = 0;
int process_done = 1; int process_done = 1;
//int idleflag = 0 ; //int idleflag = 0 ;
struct bcm_usb_rcb *pRcb = (struct bcm_usb_rcb *)urb->context; struct bcm_usb_rcb *pRcb = (struct bcm_usb_rcb *)urb->context;
...@@ -66,7 +66,7 @@ static void read_bulk_callback(struct urb *urb) ...@@ -66,7 +66,7 @@ static void read_bulk_callback(struct urb *urb)
{ {
if(urb->status == -EPIPE) if(urb->status == -EPIPE)
{ {
Adapter->bEndPointHalted = TRUE ; Adapter->bEndPointHalted = TRUE;
wake_up(&Adapter->tx_packet_wait_queue); wake_up(&Adapter->tx_packet_wait_queue);
} }
else else
...@@ -75,14 +75,14 @@ static void read_bulk_callback(struct urb *urb) ...@@ -75,14 +75,14 @@ static void read_bulk_callback(struct urb *urb)
} }
pRcb->bUsed = false; pRcb->bUsed = false;
atomic_dec(&psIntfAdapter->uNumRcbUsed); atomic_dec(&psIntfAdapter->uNumRcbUsed);
urb->status = STATUS_SUCCESS ; urb->status = STATUS_SUCCESS;
return ; return;
} }
if(Adapter->bDoSuspend && (Adapter->bPreparingForLowPowerMode)) if(Adapter->bDoSuspend && (Adapter->bPreparingForLowPowerMode))
{ {
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_RX, RX_DPC, DBG_LVL_ALL,"device is going in low power mode while PMU option selected..hence rx packet should not be process"); BCM_DEBUG_PRINT(Adapter,DBG_TYPE_RX, RX_DPC, DBG_LVL_ALL,"device is going in low power mode while PMU option selected..hence rx packet should not be process");
return ; return;
} }
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_RX, RX_DPC, DBG_LVL_ALL, "Read back done len %d\n", pLeader->PLength); BCM_DEBUG_PRINT(Adapter,DBG_TYPE_RX, RX_DPC, DBG_LVL_ALL, "Read back done len %d\n", pLeader->PLength);
...@@ -149,8 +149,8 @@ static void read_bulk_callback(struct urb *urb) ...@@ -149,8 +149,8 @@ static void read_bulk_callback(struct urb *urb)
/* currently skb->len has extra ETH_HLEN bytes in the beginning */ /* currently skb->len has extra ETH_HLEN bytes in the beginning */
skb_put (skb, pLeader->PLength + ETH_HLEN); skb_put (skb, pLeader->PLength + ETH_HLEN);
Adapter->PackInfo[QueueIndex].uiTotalRxBytes+=pLeader->PLength; Adapter->PackInfo[QueueIndex].uiTotalRxBytes += pLeader->PLength;
Adapter->PackInfo[QueueIndex].uiThisPeriodRxBytes+= pLeader->PLength; Adapter->PackInfo[QueueIndex].uiThisPeriodRxBytes += pLeader->PLength;
BCM_DEBUG_PRINT(psIntfAdapter->psAdapter,DBG_TYPE_RX, RX_DATA, DBG_LVL_ALL, "Received Data pkt of len :0x%X", pLeader->PLength); BCM_DEBUG_PRINT(psIntfAdapter->psAdapter,DBG_TYPE_RX, RX_DATA, DBG_LVL_ALL, "Received Data pkt of len :0x%X", pLeader->PLength);
if(netif_running(Adapter->dev)) if(netif_running(Adapter->dev))
...@@ -169,7 +169,7 @@ static void read_bulk_callback(struct urb *urb) ...@@ -169,7 +169,7 @@ static void read_bulk_callback(struct urb *urb)
(*(skb->data+11))++; (*(skb->data+11))++;
*(skb->data+12) = 0x08; *(skb->data+12) = 0x08;
*(skb->data+13) = 0x00; *(skb->data+13) = 0x00;
pLeader->PLength+=ETH_HLEN; pLeader->PLength += ETH_HLEN;
} }
skb->protocol = eth_type_trans(skb, Adapter->dev); skb->protocol = eth_type_trans(skb, Adapter->dev);
...@@ -184,7 +184,7 @@ static void read_bulk_callback(struct urb *urb) ...@@ -184,7 +184,7 @@ static void read_bulk_callback(struct urb *urb)
++Adapter->dev->stats.rx_packets; ++Adapter->dev->stats.rx_packets;
Adapter->dev->stats.rx_bytes += pLeader->PLength; Adapter->dev->stats.rx_bytes += pLeader->PLength;
for(uiIndex = 0 ; uiIndex < MIBS_MAX_HIST_ENTRIES ; uiIndex++) for(uiIndex = 0; uiIndex < MIBS_MAX_HIST_ENTRIES; uiIndex++)
{ {
if((pLeader->PLength <= MIBS_PKTSIZEHIST_RANGE*(uiIndex+1)) if((pLeader->PLength <= MIBS_PKTSIZEHIST_RANGE*(uiIndex+1))
&& (pLeader->PLength > MIBS_PKTSIZEHIST_RANGE*(uiIndex))) && (pLeader->PLength > MIBS_PKTSIZEHIST_RANGE*(uiIndex)))
...@@ -217,7 +217,7 @@ static int ReceiveRcb(struct bcm_interface_adapter *psIntfAdapter, struct bcm_us ...@@ -217,7 +217,7 @@ static int ReceiveRcb(struct bcm_interface_adapter *psIntfAdapter, struct bcm_us
//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) if(retval == -EPIPE)
{ {
psIntfAdapter->psAdapter->bEndPointHalted = TRUE ; psIntfAdapter->psAdapter->bEndPointHalted = TRUE;
wake_up(&psIntfAdapter->psAdapter->tx_packet_wait_queue); wake_up(&psIntfAdapter->psAdapter->tx_packet_wait_queue);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment