staging: ks7010: avoid one extra level indentation in ks_wlan_hw_rx function
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 23 Apr 2018 13:44:41 +0000 (15:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2018 13:47:22 +0000 (15:47 +0200)
This commit use an and operator in a if condition to avoid one
indentation level which is not needed at all.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c

index b16a668fa7fadb92a4ccf3e34276a4ad34bd2fee..434d5e8c8028caea0fb4da00eae57bcc368711b0 100644 (file)
@@ -494,11 +494,9 @@ static void ks_wlan_hw_rx(struct ks_wlan_private *priv, uint16_t size)
        if (ret)
                netdev_err(priv->net_dev, "write READ_STATUS_REG\n");
 
-       if (atomic_read(&priv->psstatus.confirm_wait)) {
-               if (is_hif_conf(event)) {
-                       netdev_dbg(priv->net_dev, "IS_HIF_CONF true !!\n");
-                       atomic_dec(&priv->psstatus.confirm_wait);
-               }
+       if (atomic_read(&priv->psstatus.confirm_wait) && is_hif_conf(event)) {
+               netdev_dbg(priv->net_dev, "IS_HIF_CONF true !!\n");
+               atomic_dec(&priv->psstatus.confirm_wait);
        }
 
        tasklet_schedule(&priv->rx_bh_task);