diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-04-25 20:40:23 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:24:30 -0400 |
commit | 4c13eb6657fe9ef7b4dc8f1a405c902e9e5234e0 (patch) | |
tree | d338fad7a61824d8c14c079c0be437ea4ad83f01 /drivers/net/sis900.c | |
parent | 029720f15dcd3c6c16824177cfc486083b229411 (diff) |
[ETH]: Make eth_type_trans set skb->dev like the other *_type_trans
One less thing for drivers writers to worry about.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sis900.c')
-rw-r--r-- | drivers/net/sis900.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/sis900.c b/drivers/net/sis900.c index b2a3b19d773a..dea0126723da 100644 --- a/drivers/net/sis900.c +++ b/drivers/net/sis900.c | |||
@@ -1160,7 +1160,6 @@ sis900_init_rx_ring(struct net_device *net_dev) | |||
1160 | buffer */ | 1160 | buffer */ |
1161 | break; | 1161 | break; |
1162 | } | 1162 | } |
1163 | skb->dev = net_dev; | ||
1164 | sis_priv->rx_skbuff[i] = skb; | 1163 | sis_priv->rx_skbuff[i] = skb; |
1165 | sis_priv->rx_ring[i].cmdsts = RX_BUF_SIZE; | 1164 | sis_priv->rx_ring[i].cmdsts = RX_BUF_SIZE; |
1166 | sis_priv->rx_ring[i].bufptr = pci_map_single(sis_priv->pci_dev, | 1165 | sis_priv->rx_ring[i].bufptr = pci_map_single(sis_priv->pci_dev, |
@@ -1800,7 +1799,6 @@ static int sis900_rx(struct net_device *net_dev) | |||
1800 | sis_priv->stats.rx_packets++; | 1799 | sis_priv->stats.rx_packets++; |
1801 | sis_priv->dirty_rx++; | 1800 | sis_priv->dirty_rx++; |
1802 | refill_rx_ring: | 1801 | refill_rx_ring: |
1803 | skb->dev = net_dev; | ||
1804 | sis_priv->rx_skbuff[entry] = skb; | 1802 | sis_priv->rx_skbuff[entry] = skb; |
1805 | sis_priv->rx_ring[entry].cmdsts = RX_BUF_SIZE; | 1803 | sis_priv->rx_ring[entry].cmdsts = RX_BUF_SIZE; |
1806 | sis_priv->rx_ring[entry].bufptr = | 1804 | sis_priv->rx_ring[entry].bufptr = |
@@ -1832,7 +1830,6 @@ refill_rx_ring: | |||
1832 | sis_priv->stats.rx_dropped++; | 1830 | sis_priv->stats.rx_dropped++; |
1833 | break; | 1831 | break; |
1834 | } | 1832 | } |
1835 | skb->dev = net_dev; | ||
1836 | sis_priv->rx_skbuff[entry] = skb; | 1833 | sis_priv->rx_skbuff[entry] = skb; |
1837 | sis_priv->rx_ring[entry].cmdsts = RX_BUF_SIZE; | 1834 | sis_priv->rx_ring[entry].cmdsts = RX_BUF_SIZE; |
1838 | sis_priv->rx_ring[entry].bufptr = | 1835 | sis_priv->rx_ring[entry].bufptr = |