Commit 393a8e76 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Mauro Carvalho Chehab

[media] media: pci: saa7164: remove unnecessary code

Remove unnecessary variable 'loop'.
Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Reviewed-by: default avatarPeter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 9ae05fd1
...@@ -130,14 +130,13 @@ int saa7164_irq_dequeue(struct saa7164_dev *dev) ...@@ -130,14 +130,13 @@ int saa7164_irq_dequeue(struct saa7164_dev *dev)
* -bus/c running buffer. */ * -bus/c running buffer. */
static int saa7164_cmd_dequeue(struct saa7164_dev *dev) static int saa7164_cmd_dequeue(struct saa7164_dev *dev)
{ {
int loop = 1;
int ret; int ret;
u32 timeout; u32 timeout;
wait_queue_head_t *q = NULL; wait_queue_head_t *q = NULL;
u8 tmp[512]; u8 tmp[512];
dprintk(DBGLVL_CMD, "%s()\n", __func__); dprintk(DBGLVL_CMD, "%s()\n", __func__);
while (loop) { while (true) {
struct tmComResInfo tRsp = { 0, 0, 0, 0, 0, 0 }; struct tmComResInfo tRsp = { 0, 0, 0, 0, 0, 0 };
ret = saa7164_bus_get(dev, &tRsp, NULL, 1); ret = saa7164_bus_get(dev, &tRsp, NULL, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment