Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 5/8] tg3: Cleanup tg3_alloc_rx_skb()
@ 2010-10-14 20:37 Matt Carlson
  0 siblings, 0 replies; only message in thread
From: Matt Carlson @ 2010-10-14 20:37 UTC (permalink / raw)
  To: davem; +Cc: netdev, andy, mcarlson

src_map is no longer used in tg3_alloc_rx_skb().  Remove it.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
---
 drivers/net/tg3.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index f2d96dd..84530d9 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -4573,12 +4573,11 @@ static int tg3_alloc_rx_skb(struct tg3 *tp, struct tg3_rx_prodring_set *tpr,
 			    u32 opaque_key, u32 dest_idx_unmasked)
 {
 	struct tg3_rx_buffer_desc *desc;
-	struct ring_info *map, *src_map;
+	struct ring_info *map;
 	struct sk_buff *skb;
 	dma_addr_t mapping;
 	int skb_size, dest_idx;
 
-	src_map = NULL;
 	switch (opaque_key) {
 	case RXD_OPAQUE_RING_STD:
 		dest_idx = dest_idx_unmasked & tp->rx_std_ring_mask;
-- 
1.7.2.2



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-14 20:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-14 20:37 [PATCH net-next 5/8] tg3: Cleanup tg3_alloc_rx_skb() Matt Carlson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox