Re: [PATCH] net: faraday: ftmac100: remove netif_running(netdev) check before disabling interrupts

From: Vincent Chen
Date: Tue Nov 20 2018 - 19:49:42 EST


On Wed, Nov 21, 2018 at 02:28:43AM +0800, David Miller wrote:
> aFrom: Vincent Chen <vincentc@xxxxxxxxxxxxx>
> 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.

OK. I will remove it.
Thank you.