staging: vt6655: remove unnecessary parentheses
authorSantha Meena Ramamoorthy <santhameena13@gmail.com>
Fri, 2 Mar 2018 14:05:52 +0000 (06:05 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Mar 2018 12:01:11 +0000 (04:01 -0800)
Remove unnecessary parentheses around variables to conform to the Linux
kernel coding style. Issue found using checkpatch.

Signed-off-by: Santha Meena Ramamoorthy <santhameena13@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c

index 0dc902022a918f76ad8c17dd3f693f92d7963f0d..fbc4bc68144ce12a622b7d94f4779c235a67f213 100644 (file)
@@ -543,7 +543,7 @@ static void device_init_rd0_ring(struct vnt_private *priv)
                if (!device_alloc_rx_buf(priv, desc))
                        dev_err(&priv->pcid->dev, "can not alloc rx bufs\n");
 
-               desc->next = &(priv->aRD0Ring[(i + 1) % priv->opts.rx_descs0]);
+               desc->next = &priv->aRD0Ring[(i + 1) % priv->opts.rx_descs0];
                desc->next_desc = cpu_to_le32(curr + sizeof(struct vnt_rx_desc));
        }
 
@@ -567,7 +567,7 @@ static void device_init_rd1_ring(struct vnt_private *priv)
                if (!device_alloc_rx_buf(priv, desc))
                        dev_err(&priv->pcid->dev, "can not alloc rx bufs\n");
 
-               desc->next = &(priv->aRD1Ring[(i+1) % priv->opts.rx_descs1]);
+               desc->next = &priv->aRD1Ring[(i+1) % priv->opts.rx_descs1];
                desc->next_desc = cpu_to_le32(curr + sizeof(struct vnt_rx_desc));
        }
 
@@ -581,7 +581,7 @@ static void device_free_rd0_ring(struct vnt_private *priv)
        int i;
 
        for (i = 0; i < priv->opts.rx_descs0; i++) {
-               struct vnt_rx_desc *desc = &(priv->aRD0Ring[i]);
+               struct vnt_rx_desc *desc = &priv->aRD0Ring[i];
                struct vnt_rd_info *rd_info = desc->rd_info;
 
                dma_unmap_single(&priv->pcid->dev, rd_info->skb_dma,