From: Matthias Beyer Date: Mon, 30 Jun 2014 08:10:04 +0000 (+0200) Subject: Staging: bcm: InterfaceRx.c: Removed unused variable X-Git-Tag: v3.17-rc1~123^2~1167 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8139b8d5358e873d90db1ccb54ed0b2c0611febc;p=karo-tx-linux.git 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 Signed-off-by: Matthias Beyer Signed-off-by: Greg Kroah-Hartman --- 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;