From patchwork Sat Aug 25 03:09:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 1372941 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id EA907DF264 for ; Sat, 25 Aug 2012 03:09:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755141Ab2HYDJ1 (ORCPT ); Fri, 24 Aug 2012 23:09:27 -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 S1754378Ab2HYDJY (ORCPT ); Fri, 24 Aug 2012 23:09:24 -0400 Received: by mail-yx0-f174.google.com with SMTP id l14so583846yen.19 for ; Fri, 24 Aug 2012 20:09:24 -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=MetxpQBJmFc334FEM81woU0SqvN/VVhFrtvMg9TVAY4=; b=yXA4Ay5JTEB395n8tn57Qo3S6XWN63cxj1cN8eaT3hv14SMihVBUH+SjGK97vpN63x Pt6NZLU7q9mq4xjtntFsNTz3Dlk2rW0d2TnCabJ5IbDBhBYW+xpsS8YXhejucpzSWr4z qWxhBKBgtF5AwMckOdm2uYPtWC9b5b28Ch9o4I3xEsIgO03hdC+1+VTDuxq52vp0yPfg fxUh17cDVGc77/ZJ2GixEXMptdVEdnFjsv+vKj5K9g2shBgC9pi37cjBfg5/F05i6TNL 34sXLXtd+VPOCMsgxibvotO7sCj2OVnJw6kUAZImGz/7b2pPJr2EFsrXnci26hsliZDX 2c2A== Received: by 10.236.110.209 with SMTP id u57mr6314058yhg.101.1345864163946; Fri, 24 Aug 2012 20:09:23 -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.22 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Aug 2012 20:09:23 -0700 (PDT) From: Ezequiel Garcia To: , Mauro Carvalho Chehab Cc: Ezequiel Garcia Subject: [PATCH 8/9] mem2mem_testdev: Don't check vb2_queue_init() return value Date: Sat, 25 Aug 2012 00:09:05 -0300 Message-Id: <1345864146-2207-8-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. Signed-off-by: Ezequiel Garcia --- drivers/media/platform/mem2mem_testdev.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/mem2mem_testdev.c b/drivers/media/platform/mem2mem_testdev.c index 9a8b14f..a2bd0b8 100644 --- a/drivers/media/platform/mem2mem_testdev.c +++ b/drivers/media/platform/mem2mem_testdev.c @@ -845,9 +845,7 @@ static int queue_init(void *priv, struct vb2_queue *src_vq, struct vb2_queue *ds src_vq->ops = &m2mtest_qops; src_vq->mem_ops = &vb2_vmalloc_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; @@ -856,7 +854,8 @@ static int queue_init(void *priv, struct vb2_queue *src_vq, struct vb2_queue *ds dst_vq->ops = &m2mtest_qops; dst_vq->mem_ops = &vb2_vmalloc_memops; - return vb2_queue_init(dst_vq); + vb2_queue_init(dst_vq); + return 0; } static const struct v4l2_ctrl_config m2mtest_ctrl_trans_time_msec = {