diff mbox

v4l: list entries no need to check

Message ID 1289996048.2730.2.camel@localhost.localdomain (mailing list archive)
State Accepted
Headers show

Commit Message

Figo.zhang Nov. 17, 2010, 12:14 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/video/mx1_camera.c b/drivers/media/video/mx1_camera.c
index 5c17f9e..cb2dd24 100644
--- a/drivers/media/video/mx1_camera.c
+++ b/drivers/media/video/mx1_camera.c
@@ -182,9 +182,6 @@  static int mx1_videobuf_prepare(struct videobuf_queue *vq,
 	dev_dbg(icd->dev.parent, "%s (vb=0x%p) 0x%08lx %d\n", __func__,
 		vb, vb->baddr, vb->bsize);
 
-	/* Added list head initialization on alloc */
-	WARN_ON(!list_empty(&vb->queue));
-
 	BUG_ON(NULL == icd->current_fmt);
 
 	/*
diff --git a/drivers/media/video/pxa_camera.c b/drivers/media/video/pxa_camera.c
index 9de7d59..421de10 100644
--- a/drivers/media/video/pxa_camera.c
+++ b/drivers/media/video/pxa_camera.c
@@ -444,9 +444,6 @@  static int pxa_videobuf_prepare(struct videobuf_queue *vq,
 	dev_dbg(dev, "%s (vb=0x%p) 0x%08lx %d\n", __func__,
 		vb, vb->baddr, vb->bsize);
 
-	/* Added list head initialization on alloc */
-	WARN_ON(!list_empty(&vb->queue));
-
 #ifdef DEBUG
 	/*
 	 * This can be useful if you want to see if we actually fill
diff --git a/drivers/media/video/sh_mobile_ceu_camera.c b/drivers/media/video/sh_mobile_ceu_camera.c
index 2b24bd0..b2bef3f 100644
--- a/drivers/media/video/sh_mobile_ceu_camera.c
+++ b/drivers/media/video/sh_mobile_ceu_camera.c
@@ -354,9 +354,6 @@  static int sh_mobile_ceu_videobuf_prepare(struct videobuf_queue *vq,
 	dev_dbg(icd->dev.parent, "%s (vb=0x%p) 0x%08lx %zd\n", __func__,
 		vb, vb->baddr, vb->bsize);
 
-	/* Added list head initialization on alloc */
-	WARN_ON(!list_empty(&vb->queue));
-
 #ifdef DEBUG
 	/*
 	 * This can be useful if you want to see if we actually fill