diff options
author | Florian Westphal <fw@strlen.de> | 2016-04-24 22:18:59 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-04-28 21:11:09 -0400 |
commit | 4c8bb95921e9ac01b9dd0c3abbaf6514ce88af92 (patch) | |
tree | f2cb426ec63496d0e96a7e81b65bb7649d3792c7 /drivers/infiniband/hw | |
parent | e6bd18f57aad1a2d1ef40e646d03ed0f2515c9e3 (diff) | |
download | linux-4c8bb95921e9ac01b9dd0c3abbaf6514ce88af92.tar.bz2 |
RDMA/nes: don't leak skb if carrier down
Alternatively one could free the skb, OTOH I don't think this test is
useful so just remove it.
Cc: <linux-rdma@vger.kernel.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_nic.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c index 3ea9e055fdd3..92914539edc7 100644 --- a/drivers/infiniband/hw/nes/nes_nic.c +++ b/drivers/infiniband/hw/nes/nes_nic.c @@ -500,9 +500,6 @@ static int nes_netdev_start_xmit(struct sk_buff *skb, struct net_device *netdev) * skb_shinfo(skb)->nr_frags, skb_is_gso(skb)); */ - if (!netif_carrier_ok(netdev)) - return NETDEV_TX_OK; - if (netif_queue_stopped(netdev)) return NETDEV_TX_BUSY; |