From patchwork Sat Aug 25 03:08:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 1372881 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 6A32F3FC33 for ; Sat, 25 Aug 2012 03:09:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752928Ab2HYDJO (ORCPT ); Fri, 24 Aug 2012 23:09:14 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:54107 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753353Ab2HYDJL (ORCPT ); Fri, 24 Aug 2012 23:09:11 -0400 Received: by yenl14 with SMTP id l14so583846yen.19 for ; Fri, 24 Aug 2012 20:09:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=/unxQdTXEv92Hh9hBL61uqGdyUqnm50Zfxgs83qchpU=; b=hxPa6mid2TgYMyL8999U2XQ82HV6i2fnsKI7Uq94v5S/9xn/YXWMPALP05nB3CyVzR /vzgnzvhiplPPi4VzwQSR5i2p86vTk1UmlBTQ2iGOf1RSZWvXoWFo2fO+BwLp3aU2Kdk KMSVnSFPSm9qgEAtF7kpYpDiUhEdpy9i2SU/P+TshnXuCByNWMPH2IE9TtP+aALVv/Js fRNwWpzIffUUdnE0RIMMzvq5NFVvCVitn6GkbRt0QuMsICEy4KcoMlKvG1f6nSaPxnIY N76t2EFlScFfwEcZ/yCjwx4Lou1E+Yi3AaqJaGLte6iGJhxOVajvSWKWcO/H7RIxPvWD apsA== Received: by 10.236.143.237 with SMTP id l73mr6209942yhj.68.1345864151084; Fri, 24 Aug 2012 20:09:11 -0700 (PDT) Received: from localhost.cpe.express.com.ar ([200.81.126.15]) by mx.google.com with ESMTPS id o25sm22166065yhm.14.2012.08.24.20.09.08 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Aug 2012 20:09:10 -0700 (PDT) From: Ezequiel Garcia To: , Mauro Carvalho Chehab Cc: Ezequiel Garcia , Javier Martin Subject: [PATCH 2/9] coda: Don't check vb2_queue_init() return value Date: Sat, 25 Aug 2012 00:08:59 -0300 Message-Id: <1345864146-2207-2-git-send-email-elezegarcia@gmail.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1345864146-2207-1-git-send-email-elezegarcia@gmail.com> References: <1345864146-2207-1-git-send-email-elezegarcia@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Right now vb2_queue_init() returns always 0 and it will be changed to return void. Cc: Javier Martin Signed-off-by: Ezequiel Garcia --- drivers/media/platform/coda.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 3ea822f..fc246ab 100644 --- a/drivers/media/platform/coda.c +++ b/drivers/media/platform/coda.c @@ -1256,9 +1256,7 @@ static int coda_queue_init(void *priv, struct vb2_queue *src_vq, src_vq->ops = &coda_qops; src_vq->mem_ops = &vb2_dma_contig_memops; - ret = vb2_queue_init(src_vq); - if (ret) - return ret; + vb2_queue_init(src_vq); dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; dst_vq->io_modes = VB2_MMAP; @@ -1267,7 +1265,8 @@ static int coda_queue_init(void *priv, struct vb2_queue *src_vq, dst_vq->ops = &coda_qops; dst_vq->mem_ops = &vb2_dma_contig_memops; - return vb2_queue_init(dst_vq); + vb2_queue_init(dst_vq); + return 0; } static int coda_open(struct file *file)