bnx2x: remove unused parameter in reuse_rx_skb()
authorDmitry Kravkov <dmitry@broadcom.com>
Wed, 6 Oct 2010 03:29:05 +0000 (03:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Oct 2010 21:10:38 +0000 (14:10 -0700)
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x/bnx2x_cmn.c
drivers/net/bnx2x/bnx2x_cmn.h

index cffa778ec5bf85040799803d19190478ac27ef12..5b8c0b6369ff35e9f87e31ff32dd5a24dffd7670 100644 (file)
@@ -595,7 +595,7 @@ int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget)
                                skb_reserve(new_skb, pad);
                                skb_put(new_skb, len);
 
-                               bnx2x_reuse_rx_skb(fp, skb, bd_cons, bd_prod);
+                               bnx2x_reuse_rx_skb(fp, bd_cons, bd_prod);
 
                                skb = new_skb;
 
@@ -614,7 +614,7 @@ int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget)
                                   "of alloc failure\n");
                                fp->eth_q_stats.rx_skb_alloc_failed++;
 reuse_rx:
-                               bnx2x_reuse_rx_skb(fp, skb, bd_cons, bd_prod);
+                               bnx2x_reuse_rx_skb(fp, bd_cons, bd_prod);
                                goto next_rx;
                        }
 
index 41d0a177db7f06966986bbf4b647eb66c47f1c17..73ed5a63761fd8b84cbbcf14d2e18e9367f949ca 100644 (file)
@@ -696,7 +696,7 @@ static inline int bnx2x_alloc_rx_skb(struct bnx2x *bp,
  * so there is no need to check for dma_mapping_error().
  */
 static inline void bnx2x_reuse_rx_skb(struct bnx2x_fastpath *fp,
-                              struct sk_buff *skb, u16 cons, u16 prod)
+                                     u16 cons, u16 prod)
 {
        struct bnx2x *bp = fp->bp;
        struct sw_rx_bd *cons_rx_buf = &fp->rx_buf_ring[cons];