hv_netvsc: use single existing drop path in netvsc_start_xmit
authorVitaly Kuznetsov <vkuznets@redhat.com>
Wed, 8 Apr 2015 15:54:05 +0000 (17:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Apr 2015 16:27:25 +0000 (12:27 -0400)
commit981a1bd85a959bb3b44e07c212ebc61c62ad7cf9
treec7ca1f328dd70aad3fc5c80922d70c650c06b193
parent8ae178fb1ce0428d1a22c36c8493bda4807ad3b8
hv_netvsc: use single existing drop path in netvsc_start_xmit

... which validly uses dev_kfree_skb_any() instead of dev_kfree_skb().

Setting ret to -EFAULT and -ENOMEM have no real meaning here (we need to set
it to anything but -EAGAIN) as we drop the packet and return NETDEV_TX_OK
anyway.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c