Staging: bcm: InterfaceRx.c: Removed unused variable
authorMatthias Beyer <mail@beyermatthias.de>
Mon, 30 Jun 2014 08:10:04 +0000 (10:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Jul 2014 23:06:16 +0000 (16:06 -0700)
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>
drivers/staging/bcm/InterfaceRx.c

index f2c323d6c1a2afacc49765146d923ba3bfc42bd0..0f179b9382d3a0df62728acc082c9a15e876221b 100644 (file)
@@ -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;