diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-06-05 00:03:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-08 03:20:23 -0400 |
commit | eae3f29cc73f83cc3f1891d3ad40021b5172c630 (patch) | |
tree | 71c5555b3b67cae80c1aae8b9fd907e3be957e24 | |
parent | f957bcf0164e45bd77867e02412035e1c2fd7058 (diff) |
net: num_dma_maps is not used
Get rid of num_dma_maps in struct skb_shared_info, as it seems unused.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/linux/skbuff.h | 3 | ||||
-rw-r--r-- | net/core/skb_dma_map.c | 1 |
2 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 7305da92be8f..7485058125e3 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -194,9 +194,6 @@ struct skb_shared_info { | |||
194 | unsigned short gso_type; | 194 | unsigned short gso_type; |
195 | __be32 ip6_frag_id; | 195 | __be32 ip6_frag_id; |
196 | union skb_shared_tx tx_flags; | 196 | union skb_shared_tx tx_flags; |
197 | #ifdef CONFIG_HAS_DMA | ||
198 | unsigned int num_dma_maps; | ||
199 | #endif | ||
200 | struct sk_buff *frag_list; | 197 | struct sk_buff *frag_list; |
201 | struct skb_shared_hwtstamps hwtstamps; | 198 | struct skb_shared_hwtstamps hwtstamps; |
202 | skb_frag_t frags[MAX_SKB_FRAGS]; | 199 | skb_frag_t frags[MAX_SKB_FRAGS]; |
diff --git a/net/core/skb_dma_map.c b/net/core/skb_dma_map.c index 86234923a3b7..7adb623ef664 100644 --- a/net/core/skb_dma_map.c +++ b/net/core/skb_dma_map.c | |||
@@ -30,7 +30,6 @@ int skb_dma_map(struct device *dev, struct sk_buff *skb, | |||
30 | goto unwind; | 30 | goto unwind; |
31 | sp->dma_maps[i + 1] = map; | 31 | sp->dma_maps[i + 1] = map; |
32 | } | 32 | } |
33 | sp->num_dma_maps = i + 1; | ||
34 | 33 | ||
35 | return 0; | 34 | return 0; |
36 | 35 | ||