netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tc35815: Remove unnecessary skb->dev assignment
@ 2007-05-07 15:46 Atsushi Nemoto
  2007-05-08  5:42 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Atsushi Nemoto @ 2007-05-07 15:46 UTC (permalink / raw)
  To: jeff; +Cc: netdev, akpm

Apply changes in commit 4c13eb6657fe9ef7b4dc8f1a405c902e9e5234e0 to
newly added piece of code.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c
index f1e2dfc..463d600 100644
--- a/drivers/net/tc35815.c
+++ b/drivers/net/tc35815.c
@@ -540,7 +540,6 @@ static struct sk_buff *alloc_rxbuf_skb(struct net_device *dev,
 	skb = dev_alloc_skb(RX_BUF_SIZE);
 	if (!skb)
 		return NULL;
-	skb->dev = dev;
 	*dma_handle = pci_map_single(hwdev, skb->data, RX_BUF_SIZE,
 				     PCI_DMA_FROMDEVICE);
 	if (pci_dma_mapping_error(*dma_handle)) {

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tc35815: Remove unnecessary skb->dev assignment
  2007-05-07 15:46 [PATCH] tc35815: Remove unnecessary skb->dev assignment Atsushi Nemoto
@ 2007-05-08  5:42 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-05-08  5:42 UTC (permalink / raw)
  To: Atsushi Nemoto; +Cc: netdev, akpm

Atsushi Nemoto wrote:
> Apply changes in commit 4c13eb6657fe9ef7b4dc8f1a405c902e9e5234e0 to
> newly added piece of code.
> 
> Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
> ---
> diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c
> index f1e2dfc..463d600 100644
> --- a/drivers/net/tc35815.c
> +++ b/drivers/net/tc35815.c
> @@ -540,7 +540,6 @@ static struct sk_buff *alloc_rxbuf_skb(struct net_device *dev,
>  	skb = dev_alloc_skb(RX_BUF_SIZE);
>  	if (!skb)
>  		return NULL;
> -	skb->dev = dev;
>  	*dma_handle = pci_map_single(hwdev, skb->data, RX_BUF_SIZE,
>  				     PCI_DMA_FROMDEVICE);

applied



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-08  5:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-07 15:46 [PATCH] tc35815: Remove unnecessary skb->dev assignment Atsushi Nemoto
2007-05-08  5:42 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).