summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx88/cx88-video.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-06-27 00:43:23 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-27 00:43:23 -0300
commit39f23e29bc83e1cf8c8a513001df33a222ee3869 (patch)
treedc4c85ff3bfc94fbf2f1a193e4db9437de840a9c /linux/drivers/media/video/cx88/cx88-video.c
parentcafe33c76d00a9d516146e5e92ec65153ad5eb90 (diff)
downloadmediapointer-dvb-s2-39f23e29bc83e1cf8c8a513001df33a222ee3869.tar.gz
mediapointer-dvb-s2-39f23e29bc83e1cf8c8a513001df33a222ee3869.tar.bz2
kernel sync: use list_move() and fix a typo
From: Mauro Carvalho Chehab <mchehab@infradead.org> This patch works fine with previous kernel versions (tested up to 2.6.12). kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-video.c')
-rw-r--r--linux/drivers/media/video/cx88/cx88-video.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-video.c b/linux/drivers/media/video/cx88/cx88-video.c
index ed5f83fe6..82bfbe02d 100644
--- a/linux/drivers/media/video/cx88/cx88-video.c
+++ b/linux/drivers/media/video/cx88/cx88-video.c
@@ -562,8 +562,7 @@ static int restart_video_queue(struct cx8800_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);
start_video_dma(dev, q, buf);
buf->vb.state = STATE_ACTIVE;
buf->count = q->count++;
@@ -574,8 +573,7 @@ static int restart_video_queue(struct cx8800_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 = STATE_ACTIVE;
buf->count = q->count++;
prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma);