From patchwork Wed Nov 17 12:14:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Figo.zhang" X-Patchwork-Id: 332611 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAHCFHur022675 for ; Wed, 17 Nov 2010 12:15:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934710Ab0KQMO5 (ORCPT ); Wed, 17 Nov 2010 07:14:57 -0500 Received: from mail-qw0-f46.google.com ([209.85.216.46]:45393 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934118Ab0KQMO4 (ORCPT ); Wed, 17 Nov 2010 07:14:56 -0500 Received: by qwh6 with SMTP id 6so1695002qwh.19 for ; Wed, 17 Nov 2010 04:14:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=qI5VQn4xae8thuS/e0tIT84/+el6+AyHH3gmS+wPAr8=; b=vjW5A34St2hQI88QVNfIVwW2tM+wWWuKBQVHyGTUVjTcaFmLEyRX1+gunDNh0AxadL 4i+tEuXxpsPDifQVOYf4YJQ8owdvkxvbDPyLb+pKWg9e3DQSizleUAH0HJtaFtaOhoRS qw+P64+hx7Fn00zirmgX1edvOPKu6M0z4c6Pc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=Jyo64qbKKJMN5/ThSAQfC6MQUvmKlytLRA4nLTSShufxCdojqrq613f8oLa6r1+6E4 eKNlD2nBjnvCm2BY9xN6BH8cG7TMiDU+BVCWI/k4AqWTMOO3jjCf/RuB43eM/I3tJf5u xEmcm2N1ptxQ6XznxE8xfQX4ptCEtNhQ10gvc= Received: by 10.224.182.137 with SMTP id cc9mr7518797qab.320.1289996096057; Wed, 17 Nov 2010 04:14:56 -0800 (PST) Received: from [192.168.1.100] ([118.133.184.241]) by mx.google.com with ESMTPS id t35sm1488484qco.6.2010.11.17.04.14.51 (version=SSLv3 cipher=RC4-MD5); Wed, 17 Nov 2010 04:14:54 -0800 (PST) Subject: [PATCH]v4l: list entries no need to check From: "Figo.zhang" To: linux-media , Mauro Carvalho Chehab , Mauro Carvalho Chehab Cc: AChew@nvidia.com Date: Wed, 17 Nov 2010 20:14:08 +0800 Message-ID: <1289996048.2730.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.32.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 17 Nov 2010 12:15:18 +0000 (UTC) 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