Commit 8139b8d5 authored by Matthias Beyer's avatar Matthias Beyer Committed by Greg Kroah-Hartman

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: default avatarKevin McKinney <klmckinney1@gmail.com>
Signed-off-by: default avatarMatthias Beyer <mail@beyermatthias.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3a162b19
...@@ -28,8 +28,7 @@ static void format_eth_hdr_to_stack(struct bcm_interface_adapter *interface, ...@@ -28,8 +28,7 @@ static void format_eth_hdr_to_stack(struct bcm_interface_adapter *interface,
struct urb *urb, struct urb *urb,
UINT ui_index, UINT ui_index,
int queue_index, int queue_index,
bool b_header_supression_endabled, bool b_header_supression_endabled)
int *process_done)
{ {
/* /*
* Data Packet, Format a proper Ethernet Header * Data Packet, Format a proper Ethernet Header
...@@ -68,7 +67,7 @@ static void format_eth_hdr_to_stack(struct bcm_interface_adapter *interface, ...@@ -68,7 +67,7 @@ static void format_eth_hdr_to_stack(struct bcm_interface_adapter *interface,
} }
skb->protocol = eth_type_trans(skb, ad->dev); skb->protocol = eth_type_trans(skb, ad->dev);
*process_done = netif_rx(skb); netif_rx(skb);
} else { } else {
BCM_DEBUG_PRINT(interface->psAdapter, DBG_TYPE_RX, BCM_DEBUG_PRINT(interface->psAdapter, DBG_TYPE_RX,
RX_DATA, DBG_LVL_ALL, RX_DATA, DBG_LVL_ALL,
...@@ -129,7 +128,6 @@ static void read_bulk_callback(struct urb *urb) ...@@ -129,7 +128,6 @@ static void read_bulk_callback(struct urb *urb)
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;
struct bcm_usb_rcb *pRcb = (struct bcm_usb_rcb *)urb->context; struct bcm_usb_rcb *pRcb = (struct bcm_usb_rcb *)urb->context;
struct bcm_interface_adapter *psIntfAdapter = pRcb->psIntfAdapter; struct bcm_interface_adapter *psIntfAdapter = pRcb->psIntfAdapter;
struct bcm_mini_adapter *Adapter = psIntfAdapter->psAdapter; struct bcm_mini_adapter *Adapter = psIntfAdapter->psAdapter;
...@@ -213,8 +211,7 @@ static void read_bulk_callback(struct urb *urb) ...@@ -213,8 +211,7 @@ static void read_bulk_callback(struct urb *urb)
} else { } else {
format_eth_hdr_to_stack(psIntfAdapter, Adapter, pLeader, skb, format_eth_hdr_to_stack(psIntfAdapter, Adapter, pLeader, skb,
urb, uiIndex, QueueIndex, urb, uiIndex, QueueIndex,
bHeaderSupressionEnabled, bHeaderSupressionEnabled);
&process_done);
} }
Adapter->PrevNumRecvDescs++; Adapter->PrevNumRecvDescs++;
pRcb->bUsed = false; pRcb->bUsed = false;
......
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