From patchwork Sat Aug 25 03:09:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 1372901 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 7DF3CDF264 for ; Sat, 25 Aug 2012 03:09:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754124Ab2HYDJQ (ORCPT ); Fri, 24 Aug 2012 23:09:16 -0400 Received: from mail-gg0-f174.google.com ([209.85.161.174]:44969 "EHLO mail-gg0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752911Ab2HYDJO (ORCPT ); Fri, 24 Aug 2012 23:09:14 -0400 Received: by ggdk6 with SMTP id k6so581646ggd.19 for ; Fri, 24 Aug 2012 20:09:13 -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=y1ia3d35c07deC9XbSDiEruqDvjjXVt11q0Q8fB33Bw=; b=aY+xJYSM9WfpOPigQwCnvWQhHFpykCzVgpxDWE8nMu+6b6QXBnhXZzzWOgAOfo5Pz0 lOAxNxu/lQYnaD0FmTiK4850OqXX4zwsw958TM1OoRVVEiM3jTNZKU563wkt8R0+uYr7 SHYyRoguAhBXZle4msL4bcEIZ/vn+erukzat1JpSIAy27KeUE6JWObm0vo89Y7DCWzLO 5ef5X0PYTdwstzF+4xXgQYLZZ2kvqbeo+YPJzl5OGDELQN5en1I7RLJxtsyhUUtjU3Rl yJPfi2ab9+qGQ5pfyvNK0bXOU7pZhGisyXI1wrYSiFzq+MJl3DICnW0oTY3hcfKVWnE7 twkQ== Received: by 10.236.77.163 with SMTP id d23mr6162137yhe.75.1345864153248; Fri, 24 Aug 2012 20:09:13 -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.11 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Aug 2012 20:09:12 -0700 (PDT) From: Ezequiel Garcia To: , Mauro Carvalho Chehab Cc: Ezequiel Garcia , Javier Martin Subject: [PATCH 3/9] mem2mem-emmaprp: Don't check vb2_queue_init() return value Date: Sat, 25 Aug 2012 00:09:00 -0300 Message-Id: <1345864146-2207-3-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/mx2_emmaprp.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/mx2_emmaprp.c b/drivers/media/platform/mx2_emmaprp.c index 59aaca4..17e5c7e 100644 --- a/drivers/media/platform/mx2_emmaprp.c +++ b/drivers/media/platform/mx2_emmaprp.c @@ -764,9 +764,7 @@ static int queue_init(void *priv, struct vb2_queue *src_vq, src_vq->ops = &emmaprp_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 | VB2_USERPTR; @@ -775,7 +773,8 @@ static int queue_init(void *priv, struct vb2_queue *src_vq, dst_vq->ops = &emmaprp_qops; dst_vq->mem_ops = &vb2_dma_contig_memops; - return vb2_queue_init(dst_vq); + vb2_queue_init(dst_vq); + return 0; } /*