net: num_dma_maps is not used
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 5 Jun 2009 04:03:35 +0000 (04:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jun 2009 07:20:23 +0000 (00:20 -0700)
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>
include/linux/skbuff.h
net/core/skb_dma_map.c

index 7305da92be8f6c6fecf8ca6b89dfa22bbfc76512..7485058125e32b73c84d04f7823031c5cc80c97d 100644 (file)
@@ -194,9 +194,6 @@ struct skb_shared_info {
        unsigned short  gso_type;
        __be32          ip6_frag_id;
        union skb_shared_tx tx_flags;
-#ifdef CONFIG_HAS_DMA
-       unsigned int    num_dma_maps;
-#endif
        struct sk_buff  *frag_list;
        struct skb_shared_hwtstamps hwtstamps;
        skb_frag_t      frags[MAX_SKB_FRAGS];
index 86234923a3b7600571d434e884fed063a318c718..7adb623ef6645d8051481d9fd44988976b09b30f 100644 (file)
@@ -30,7 +30,6 @@ int skb_dma_map(struct device *dev, struct sk_buff *skb,
                        goto unwind;
                sp->dma_maps[i + 1] = map;
        }
-       sp->num_dma_maps = i + 1;
 
        return 0;