staging: vt6655: Fix the spacing around operators
authorFrank A. Cancio Bello <frank@generalsoftwareinc.com>
Fri, 1 Nov 2019 23:22:46 +0000 (23:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Nov 2019 12:09:00 +0000 (13:09 +0100)
Add space around operators to comply in that way with the preferred
coding style for the linux kernel. Issue found by checkpatch.

Suggested-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Frank A. Cancio Bello <frank@generalsoftwareinc.com>
Link: https://lore.kernel.org/r/0f77b97e88c28c503caf25fafb84729509969ec3.1572649242.git.frank@generalsoftwareinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c
drivers/staging/vt6655/rf.c

index 2b93bea..be3883f 100644 (file)
@@ -659,12 +659,12 @@ static int device_init_td0_ring(struct vnt_private *priv)
                desc->td_info->buf = priv->tx0_bufs + i * PKT_BUF_SZ;
                desc->td_info->buf_dma = priv->tx_bufs_dma0 + i * PKT_BUF_SZ;
 
-               desc->next = &(priv->apTD0Rings[(i+1) % priv->opts.tx_descs[0]]);
+               desc->next = &(priv->apTD0Rings[(i + 1) % priv->opts.tx_descs[0]]);
                desc->next_desc = cpu_to_le32(curr + sizeof(struct vnt_tx_desc));
        }
 
        if (i > 0)
-               priv->apTD0Rings[i-1].next_desc = cpu_to_le32(priv->td0_pool_dma);
+               priv->apTD0Rings[i - 1].next_desc = cpu_to_le32(priv->td0_pool_dma);
        priv->apTailTD[0] = priv->apCurrTD[0] = &priv->apTD0Rings[0];
 
        return 0;
@@ -704,7 +704,7 @@ static int device_init_td1_ring(struct vnt_private *priv)
        }
 
        if (i > 0)
-               priv->apTD1Rings[i-1].next_desc = cpu_to_le32(priv->td1_pool_dma);
+               priv->apTD1Rings[i - 1].next_desc = cpu_to_le32(priv->td1_pool_dma);
        priv->apTailTD[1] = priv->apCurrTD[1] = &priv->apTD1Rings[0];
 
        return 0;
index e80fed6..7cbc5bc 100644 (file)
@@ -436,7 +436,7 @@ static bool s_bAL7230Init(struct vnt_private *priv)
        ret &= IFRFbWriteEmbedded(priv, (0x3ABA8F00 + (BY_AL7230_REG_LEN << 3) + IFREGCTL_REGW));
        MACvTimer0MicroSDelay(priv, 30);/* 30us */
        /* TXDCOC:disable, RCK:disable */
-       ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTable[CB_AL7230_INIT_SEQ-1]);
+       ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTable[CB_AL7230_INIT_SEQ - 1]);
 
        MACvWordRegBitsOn(iobase, MAC_REG_SOFTPWRCTL, (SOFTPWRCTL_SWPE3    |
                                                         SOFTPWRCTL_SWPE2    |
@@ -558,7 +558,7 @@ static bool RFbAL2230Init(struct vnt_private *priv)
        MACvTimer0MicroSDelay(priv, 30);/* 30us */
        ret &= IFRFbWriteEmbedded(priv, (0x00780f00 + (BY_AL2230_REG_LEN << 3) + IFREGCTL_REGW));
        MACvTimer0MicroSDelay(priv, 30);/* 30us */
-       ret &= IFRFbWriteEmbedded(priv, dwAL2230InitTable[CB_AL2230_INIT_SEQ-1]);
+       ret &= IFRFbWriteEmbedded(priv, dwAL2230InitTable[CB_AL2230_INIT_SEQ - 1]);
 
        MACvWordRegBitsOn(iobase, MAC_REG_SOFTPWRCTL, (SOFTPWRCTL_SWPE3    |
                                                         SOFTPWRCTL_SWPE2    |