Skip to contentSkip to conversation

staging: vt6655: remove multiple assignments

PATCH In review Alexander Vorwerk 2 participants 4 messages May 2, 2021 – May 3, 2021 Staging

lore
Share & tools
lore
#0 lore raw

cover staging: vt6655: remove multiple assignments

These two patches fix two multiple assignments coding-style issues reported by checkpatch.pl.

Alexander Vorwerk (2):
staging: vt6655: remove multiple assignment
staging: vt6655: remove multiple assignment

 drivers/staging/vt6655/device_main.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/2 staging: vt6655: remove multiple assignment

removing a multiple assignment coding style issue
reported by checkpatch.pl.

---
 drivers/staging/vt6655/device_main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/staging/vt6655/device_main.c +3 -1
index 979165445d88..2e768181fa6a 100644
@@ -673,7 +673,9 @@ static int device_init_td0_ring(struct vnt_private *priv)
 
 	if (i > 0)
 		priv->apTD0Rings[i - 1].next_desc = cpu_to_le32(priv->td0_pool_dma);
-	priv->apTailTD[0] = priv->apCurrTD[0] = &priv->apTD0Rings[0];
+
+	priv->apTailTD[0] = &priv->apTD0Rings[0];
+	priv->apCurrTD[0] = &priv->apTD0Rings[0];
 
 	return 0;
 
Signature · 1 line
2.17.1
#2 lore raw

PATCH 2/2 staging: vt6655: remove multiple assignment

In reply to Alexander Vorwerk

removing a multiple assignment coding style issue
reported by checkpatch.pl.

---
 drivers/staging/vt6655/device_main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/staging/vt6655/device_main.c +3 -1
index 2e768181fa6a..3d664b87a3cc 100644
@@ -715,7 +715,9 @@ 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->apTailTD[1] = priv->apCurrTD[1] = &priv->apTD1Rings[0];
+
+	priv->apTailTD[1] = &priv->apTD1Rings[0];
+	priv->apCurrTD[1] = &priv->apTD1Rings[0];
 
 	return 0;
 
Signature · 1 line
2.17.1
maintainer
#3 lore raw
In reply to Alexander Vorwerk
Quoted 6 lines · Alexander Vorwerk

These two patches fix two multiple assignments coding-style issues reported by checkpatch.pl.

Alexander Vorwerk (2):
staging: vt6655: remove multiple assignment
staging: vt6655: remove multiple assignment

You sent 2 patches that do different things yet have the same identical subject line :(

Please fix up and resend.

thanks,

greg k-h