summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-04-14 15:45:44 +0200
committerDavid S. Miller <davem@davemloft.net>2010-04-14 15:45:44 +0200
commitb4bf665c5761837f693e87ab27870a5868185ccc (patch)
tree5c48b5e305a0ec572fb7d4538ad0bde51171a543 /drivers/net
parentMerge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/ne... (diff)
downloadlinux-b4bf665c5761837f693e87ab27870a5868185ccc.tar.xz
linux-b4bf665c5761837f693e87ab27870a5868185ccc.zip
virtio_net: Fix mis-merge.
Pointed out by Stephen Rothwell. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/virtio_net.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 73116512ca05..b0a85d038796 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -329,7 +329,6 @@ static int add_recvbuf_small(struct virtnet_info *vi, gfp_t gfp)
struct skb_vnet_hdr *hdr;
int err;
- sg_init_table(sg, 2);
skb = netdev_alloc_skb_ip_align(vi->dev, MAX_PACKET_LEN);
if (unlikely(!skb))
return -ENOMEM;