summaryrefslogtreecommitdiff
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-01-31 02:21:40 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2022-02-22 11:41:11 +0300
commite6f1fc41343dc6635afe3938a66aca3444b92f6e (patch)
treece4747089b60abd7d453905a95ddd577843908a4 /drivers/media/pci
parent5e10543b86f1f4e6025b4de4fc749476348b0f8d (diff)
downloadlinux-e6f1fc41343dc6635afe3938a66aca3444b92f6e.tar.xz
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 assignment is redundant and can be removed. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r--drivers/media/pci/saa7164/saa7164-cmd.c1
1 files changed, 0 insertions, 1 deletions
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;