staging: vt6655: remove unnecessary parentheses
PATCH 1/1 staging: vt6655: remove unnecessary parentheses
Remove unnecessary parentheses around variables to conform to the Linux kernel coding style. Issue found using checkpatch.
--- drivers/staging/vt6655/device_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/vt6655/device_main.c +3 -3
@@ -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,
Signature · 1 line
2.7.4
Quoted 4 lines · Santha Meena Ramamoorthy
Remove unnecessary parentheses around variables to conform to the Linux kernel coding style. Issue found using checkpatch.
Signed-off-by Santha Meena Ramamoorthy <[email protected]>
Quoted 45 lines
--- drivers/staging/vt6655/device_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/staging/vt6655/device_main.c +3
-4@@ -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, --2.7.4
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1519999552-19961-1-git-send-email-santhameena13%40gmail.com.
For more options, visit https://groups.google.com/d/optout.