From patchwork Sat Aug 25 03:09:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 1372891 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 2779EDF264 for ; Sat, 25 Aug 2012 03:09:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754335Ab2HYDJS (ORCPT ); Fri, 24 Aug 2012 23:09:18 -0400 Received: from mail-gh0-f174.google.com ([209.85.160.174]:49790 "EHLO mail-gh0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753472Ab2HYDJQ (ORCPT ); Fri, 24 Aug 2012 23:09:16 -0400 Received: by ghrr11 with SMTP id r11so586536ghr.19 for ; Fri, 24 Aug 2012 20:09:15 -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=NfXj5f2wwiIQPzwAcA4MfUzAdJzYbF7IF651hnXi9Io=; b=AX9sl2gc6nQBLprNxaiXa8ej13A1dpmq+MeuQOnlNLw28KXP62oUy3XrGJnHu92+DP zrMuqmIpK9Qa2omHxqqf/JpLIJSMLml8LQhpEXc2cy267439PrmW0fdukMzty822ISfY xo0EJqtyTJHZgEPv8+RXlCRVp8utJbMH/O4k7Jr1oAHNtHx+P81QUXgkDPYnUFUsiVHI xJUPtRpZNPjQo8avI9qegXr/aoSdoFcWt5m1drXCPQmWB0psKuPev2giCa1eYcJaapKI 5w7JY93/2Niq42KWgKWnuf21rUHRe0Yu57Xk0rJHrJHXasAv2g7BCGH11I4dgjphjP2y tMoQ== Received: by 10.236.103.194 with SMTP id f42mr6188094yhg.94.1345864155393; Fri, 24 Aug 2012 20:09:15 -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.13 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Aug 2012 20:09:14 -0700 (PDT) From: Ezequiel Garcia To: , Mauro Carvalho Chehab Cc: Ezequiel Garcia , Javier Martin Subject: [PATCH 4/9] mem2mem-deinterlace: Don't check vb2_queue_init() return value Date: Sat, 25 Aug 2012 00:09:01 -0300 Message-Id: <1345864146-2207-4-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/m2m-deinterlace.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/m2m-deinterlace.c b/drivers/media/platform/m2m-deinterlace.c index 9afd930..591e1b8 100644 --- a/drivers/media/platform/m2m-deinterlace.c +++ b/drivers/media/platform/m2m-deinterlace.c @@ -873,9 +873,7 @@ static int queue_init(void *priv, struct vb2_queue *src_vq, q_data[V4L2_M2M_SRC].sizeimage = (640 * 480 * 3) / 2; q_data[V4L2_M2M_SRC].field = V4L2_FIELD_SEQ_TB; - 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; @@ -889,7 +887,8 @@ static int queue_init(void *priv, struct vb2_queue *src_vq, q_data[V4L2_M2M_DST].sizeimage = (640 * 480 * 3) / 2; q_data[V4L2_M2M_SRC].field = V4L2_FIELD_INTERLACED_TB; - return vb2_queue_init(dst_vq); + vb2_queue_init(dst_vq); + return 0; } /*