diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2014-06-30 10:10:04 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-08 16:06:16 -0700 |
commit | 8139b8d5358e873d90db1ccb54ed0b2c0611febc (patch) | |
tree | 5df6dd6c6dfbdedfe55add26f5d810d81318a727 /drivers | |
parent | 3a162b194890dc4bfeacc15885ffdd0e260ce167 (diff) |
Staging: bcm: InterfaceRx.c: Removed unused variable
This patch removes the `process_done` variable from both
format_eth_hdr_to_stack() and read_bulk_callback() (where it is
declared), as it is not used anywhere (it is set in the
format_eth_hdr_to_stack() function, but afterwards not used).
Acked-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/bcm/InterfaceRx.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/staging/bcm/InterfaceRx.c b/drivers/staging/bcm/InterfaceRx.c index f2c323d6c1a2..0f179b9382d3 100644 --- a/drivers/staging/bcm/InterfaceRx.c +++ b/drivers/staging/bcm/InterfaceRx.c @@ -28,8 +28,7 @@ static void format_eth_hdr_to_stack(struct bcm_interface_adapter *interface, struct urb *urb, UINT ui_index, int queue_index, - bool b_header_supression_endabled, - int *process_done) + bool b_header_supression_endabled) { /* * Data Packet, Format a proper Ethernet Header @@ -68,7 +67,7 @@ static void format_eth_hdr_to_stack(struct bcm_interface_adapter *interface, } skb->protocol = eth_type_trans(skb, ad->dev); - *process_done = netif_rx(skb); + netif_rx(skb); } else { BCM_DEBUG_PRINT(interface->psAdapter, DBG_TYPE_RX, RX_DATA, DBG_LVL_ALL, @@ -129,7 +128,6 @@ static void read_bulk_callback(struct urb *urb) bool bHeaderSupressionEnabled = false; int QueueIndex = NO_OF_QUEUES + 1; UINT uiIndex = 0; - int process_done = 1; 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; @@ -213,8 +211,7 @@ static void read_bulk_callback(struct urb *urb) } else { format_eth_hdr_to_stack(psIntfAdapter, Adapter, pLeader, skb, urb, uiIndex, QueueIndex, - bHeaderSupressionEnabled, - &process_done); + bHeaderSupressionEnabled); } Adapter->PrevNumRecvDescs++; pRcb->bUsed = false; |