[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2645626.sX8mP7tn7R@wuerfel>
Date: Wed, 15 Apr 2015 16:14:26 +0200
From: Arnd Bergmann <arnd@...db.de>
To: Ding Tianhong <dingtianhong@...wei.com>
Cc: davem@...emloft.net, grant.likely@...aro.org,
sergei.shtylyov@...entembedded.com,
linux-arm-kernel@...ts.infradead.org, eric.dumazet@...il.com,
zhangfei.gao@...aro.org, joe@...ches.com, netdev@...r.kernel.org,
devicetree@...r.kernel.org, linux@....linux.org.uk
Subject: Re: [PATCH net-next 5/6] net: hip04: remove the unnecessary check
On Wednesday 15 April 2015 20:30:07 Ding Tianhong wrote:
> diff --git a/drivers/net/ethernet/hisilicon/hip04_eth.c b/drivers/net/ethernet/hisilicon/hip04_eth.c
> index ff9d19c..a7ab1d9 100644
> --- a/drivers/net/ethernet/hisilicon/hip04_eth.c
> +++ b/drivers/net/ethernet/hisilicon/hip04_eth.c
> @@ -440,7 +440,7 @@ static int hip04_tx_reclaim(struct net_device *ndev, bool force)
> smp_wmb(); /* Ensure tx_tail visible to xmit */
>
> out:
> - if (pkts_compl || bytes_compl)
> + if (bytes_compl)
> netdev_completed_queue(ndev, pkts_compl, bytes_compl);
>
> if (unlikely(netif_queue_stopped(ndev)) && (count < (TX_DESC_NUM - 1)))
> --
>
Acked-by: Arnd Bergmann <arnd@...db.de>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists