[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181120.102843.2033247081781930217.davem@davemloft.net>
Date: Tue, 20 Nov 2018 10:28:43 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: vincentc@...estech.com
Cc: gregkh@...uxfoundation.org, rdunlap@...radead.org,
yuehaibing@...wei.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: faraday: ftmac100: remove netif_running(netdev)
check before disabling interrupts
aFrom: Vincent Chen <vincentc@...estech.com>
Date: Tue, 20 Nov 2018 13:37:46 +0800
> + /* Disable interrupts for polling */
> + ftmac100_disable_all_int(priv);
> if (likely(netif_running(netdev))) {
> - /* Disable interrupts for polling */
> - ftmac100_disable_all_int(priv);
> napi_schedule(&priv->napi);
> }
This is now a single-line basic block, so please remove the curly
braces.
Thank you.
Powered by blists - more mailing lists