Commit eb716c54 authored by Jon Mason's avatar Jon Mason Committed by David S. Miller

sunbmac: remove unnecessary setting of skb->dev

skb->dev is being unnecessarily set during ring init and skb alloc in rx.  It is
already being set to the proper value when eth_type_trans is called on packet
receive, and the skb->dev is not referenced anywhere else in the code.
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c768b681
...@@ -233,7 +233,6 @@ static void bigmac_init_rings(struct bigmac *bp, int from_irq) ...@@ -233,7 +233,6 @@ static void bigmac_init_rings(struct bigmac *bp, int from_irq)
continue; continue;
bp->rx_skbs[i] = skb; bp->rx_skbs[i] = skb;
skb->dev = dev;
/* Because we reserve afterwards. */ /* Because we reserve afterwards. */
skb_put(skb, ETH_FRAME_LEN); skb_put(skb, ETH_FRAME_LEN);
...@@ -838,7 +837,6 @@ static void bigmac_rx(struct bigmac *bp) ...@@ -838,7 +837,6 @@ static void bigmac_rx(struct bigmac *bp)
RX_BUF_ALLOC_SIZE - 34, RX_BUF_ALLOC_SIZE - 34,
DMA_FROM_DEVICE); DMA_FROM_DEVICE);
bp->rx_skbs[elem] = new_skb; bp->rx_skbs[elem] = new_skb;
new_skb->dev = bp->dev;
skb_put(new_skb, ETH_FRAME_LEN); skb_put(new_skb, ETH_FRAME_LEN);
skb_reserve(new_skb, 34); skb_reserve(new_skb, 34);
this->rx_addr = this->rx_addr =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment