virtio_net: Do not clear memory for struct virtio_net_hdr twice.
authorJarno Rajahalme <jarno@ovn.org>
Fri, 18 Nov 2016 23:40:40 +0000 (15:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Nov 2016 15:37:03 +0000 (10:37 -0500)
commit9403cd7cbb08aa3709c632decafa2014c8ed96e6
treed15f6f474b928920f7969793fdde233ad187ffac
parentd66016a77757b004b8637f44d87bedfc4a47b89c
virtio_net: Do not clear memory for struct virtio_net_hdr twice.

virtio_net_hdr_from_skb() clears the memory for the header, so there
is no point for the callers to do the same.

Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c
include/linux/virtio_net.h
net/packet/af_packet.c