From 0794d43514168da4f44efcf38b12c10801bf131c Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Mon, 8 Oct 2012 08:33:49 -0300 Subject: [PATCH] --- yaml --- r: 343785 b: refs/heads/master c: 8d6b12501a7ebc59c309b32457192bba93334e0b h: refs/heads/master i: 343783: ab3b7ad0e1a41e508979130face74a9a884e37ee v: v3 --- [refs] | 2 +- trunk/drivers/media/pci/cx88/cx88-mpeg.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 33367c2e2323..94d49808fa8b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 30cfbee36d2fef3bf5a4634a34494bac2df4f271 +refs/heads/master: 8d6b12501a7ebc59c309b32457192bba93334e0b diff --git a/trunk/drivers/media/pci/cx88/cx88-mpeg.c b/trunk/drivers/media/pci/cx88/cx88-mpeg.c index d154bc197356..1b7e979b87d3 100644 --- a/trunk/drivers/media/pci/cx88/cx88-mpeg.c +++ b/trunk/drivers/media/pci/cx88/cx88-mpeg.c @@ -217,8 +217,7 @@ static int cx8802_restart_queue(struct cx8802_dev *dev, return 0; buf = list_entry(q->queued.next, struct cx88_buffer, vb.queue); if (NULL == prev) { - list_del(&buf->vb.queue); - list_add_tail(&buf->vb.queue,&q->active); + list_move_tail(&buf->vb.queue, &q->active); cx8802_start_dma(dev, q, buf); buf->vb.state = VIDEOBUF_ACTIVE; buf->count = q->count++; @@ -229,8 +228,7 @@ static int cx8802_restart_queue(struct cx8802_dev *dev, } else if (prev->vb.width == buf->vb.width && prev->vb.height == buf->vb.height && prev->fmt == buf->fmt) { - list_del(&buf->vb.queue); - list_add_tail(&buf->vb.queue,&q->active); + list_move_tail(&buf->vb.queue, &q->active); buf->vb.state = VIDEOBUF_ACTIVE; buf->count = q->count++; prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma);