[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20101213171725.2ed299cf.yuasa@linux-mips.org>
Date: Mon, 13 Dec 2010 17:17:25 +0900
From: Yoichi Yuasa <yuasa@...ux-mips.org>
To: "David S. Miller" <davem@...emloft.net>
Cc: yuasa@...ux-mips.org, netdev <netdev@...r.kernel.org>,
Eugene Konev <ejka@...i.kspu.ru>
Subject: [PATCH net-next-2.6 1/2] cpmac: remove unused buflen
Signed-off-by: Yoichi Yuasa <yuasa@...ux-mips.org>
---
drivers/net/cpmac.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/drivers/net/cpmac.c b/drivers/net/cpmac.c
index fec939f..8021756 100644
--- a/drivers/net/cpmac.c
+++ b/drivers/net/cpmac.c
@@ -179,7 +179,6 @@ MODULE_PARM_DESC(dumb_switch, "Assume switch is not connected to MDIO bus");
struct cpmac_desc {
u32 hw_next;
u32 hw_data;
- u16 buflen;
u16 bufflags;
u16 datalen;
u16 dataflags;
@@ -415,7 +414,6 @@ static struct sk_buff *cpmac_rx_one(struct cpmac_priv *priv,
priv->dev->stats.rx_dropped++;
}
- desc->buflen = CPMAC_SKB_SIZE;
desc->dataflags = CPMAC_OWN;
return result;
@@ -586,7 +584,6 @@ static int cpmac_start_xmit(struct sk_buff *skb, struct net_device *dev)
DMA_TO_DEVICE);
desc->hw_data = (u32)desc->data_mapping;
desc->datalen = len;
- desc->buflen = len;
if (unlikely(netif_msg_tx_queued(priv)))
printk(KERN_DEBUG "%s: sending 0x%p, len=%d\n", dev->name, skb,
skb->len);
@@ -1005,7 +1002,6 @@ static int cpmac_open(struct net_device *dev)
CPMAC_SKB_SIZE,
DMA_FROM_DEVICE);
desc->hw_data = (u32)desc->data_mapping;
- desc->buflen = CPMAC_SKB_SIZE;
desc->dataflags = CPMAC_OWN;
desc->next = &priv->rx_head[(i + 1) % priv->ring_size];
desc->next->prev = desc;
--
1.7.3.3
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists