diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-01-31 00:21:40 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2022-02-22 09:41:11 +0100 |
commit | e6f1fc41343dc6635afe3938a66aca3444b92f6e (patch) | |
tree | ce4747089b60abd7d453905a95ddd577843908a4 /drivers/media | |
parent | media: saa7134: remove redundant assignment to variable id (diff) | |
download | linux-e6f1fc41343dc6635afe3938a66aca3444b92f6e.tar.xz linux-e6f1fc41343dc6635afe3938a66aca3444b92f6e.zip |
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')
-rw-r--r-- | drivers/media/pci/saa7164/saa7164-cmd.c | 1 |
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; |