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

From: David Miller
Date: Tue Nov 20 2018 - 13:28:46 EST


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.