diff mbox series

media: saa7164: remove redundant assignment to variable idx

Message ID 20220130232140.9053-1-colin.i.king@gmail.com
State Accepted
Commit e6f1fc41343dc6635afe3938a66aca3444b92f6e
Headers show
Series media: saa7164: remove redundant assignment to variable idx | expand

Commit Message

Colin Ian King Jan. 30, 2022, 11:21 p.m. UTC
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.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 drivers/media/pci/saa7164/saa7164-cmd.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/media/pci/saa7164/saa7164-cmd.c b/drivers/media/pci/saa7164/saa7164-cmd.c
index a65d810ce212..42bd8e76005b 100644
--- a/drivers/media/pci/saa7164/saa7164-cmd.c
+++ b/drivers/media/pci/saa7164/saa7164-cmd.c
@@ -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;