Skip to contentSkip to conversation

media: saa7164: remove redundant assignment to variable idx

PATCH New Colin Ian King 1 participant 1 message Jan 30, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: saa7164: remove redundant assignment to variable idx

Variable idx is being assigned a value that is never read, it is being re-assigned a new value in the following for-loop. The assignmen is redundant and can be removed.

---
 drivers/media/pci/saa7164/saa7164-cmd.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/pci/saa7164/saa7164-cmd.c +0 -1
index a65d810ce212..42bd8e76005b 100644
@@ -187,7 +187,6 @@ static int saa7164_cmd_set(struct saa7164_dev *dev, struct tmComResInfo *msg,
 	mutex_lock(&dev->cmds[msg->id].lock);
 
 	size = msg->size;
-	idx = 0;
 	cmds = size / bus->m_wMaxReqSize;
 	if (size % bus->m_wMaxReqSize == 0)
 		cmds -= 1;
Signature · 1 line
2.34.1