Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3204060yba; Sat, 18 May 2019 11:27:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIOCtmsuhdWTpdZL0K2MuxbjENZO0HfKRJHA9/cuKlrDg5D2xivSyfTyPkwA+3mrMe0c1z X-Received: by 2002:a17:902:f20b:: with SMTP id gn11mr65224462plb.126.1558204072672; Sat, 18 May 2019 11:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558204072; cv=none; d=google.com; s=arc-20160816; b=JQJP3yNPq7FAslW4p0H9hGO7mev89+M0AFbD0n2z+EkgEaEaNKv6TQYRiswA/uKSp2 jS/rYUMQVcdTlManJdFILQvOyysqgrjPVgi3nix2DJQvAOkhnViOUXoAdZIqqz38vh9O RrW2cxUbVkBWYiYgECWqzGy82zXeKuIM375qiM9y5NkCX9WvudIDa5O9MVMKPIwp1G6N MamozK4sQsFTxE2WIprE7TsXwGJY2QVssJMBoH+4qVvmkyMNfg188w+BZ37MPGi0848z xv1IyQYDLgY9UqgfG5gfInEwppKDiqDPZjfVlPlrp0B5DmB2oIt/9AooY9PE5Tpiv5/Y +HPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=K1nkYGLmXxVZQrJhOHX5C3Yjum/GvkV8x/L+QphEw5Y=; b=XTCHNwfYxwjiNZR8ZIlJAoTd37VKRRVEvbLuPaJlGObJEdKJlV+OoNZDwkOpYkVGJK Fvg4biJs0oNG7Qt07+XGyxcJQ57XqSwDLVAGypHa9R+eGvivSIWjft2X3GYW0FCd33rR WV3f1uPMyfyRTTJBWDNjEZVzfKwf4ORjE6WaulflfvoAl2Za5dMjAp/UABcOcttL92hU xbrHZ0Zaalh6kK/atI416hvAFcy9zDNC0h+n+3b6MkSY7ooWa4DOnUYY6hz6q7xOQu8W IHxQUuPyFAsOB3vs9C8JZ+B4rctYZrZ5a+t25yAeHhRllOIc/Rwou+s121WjBpkQTgZ0 WFfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VKIycHZ8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3si11765538pgp.587.2019.05.18.11.27.37; Sat, 18 May 2019 11:27:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VKIycHZ8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729584AbfERRi7 (ORCPT + 99 others); Sat, 18 May 2019 13:38:59 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:44152 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727073AbfERRi7 (ORCPT ); Sat, 18 May 2019 13:38:59 -0400 Received: by mail-pf1-f195.google.com with SMTP id g9so5181805pfo.11; Sat, 18 May 2019 10:38:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=K1nkYGLmXxVZQrJhOHX5C3Yjum/GvkV8x/L+QphEw5Y=; b=VKIycHZ8mOTyhdoH7w67rLsEBUiN8FjSJtD8i98oTd0bVeMq1TDnxyqD+Tygrf5cox 9RQ01OJDPB9SDuyvZoJiYiW9YK5caCd1M4OnP2jgDDehk5/UIlpfbguJZbhuf1H0wtpi 7oneN1VrKDPSvo+EkvYw7LvLpp/41+8KiYYbaHPLa/DwrTg4Dw7ZHRafxwmsoXLrd3XM +zo7nFPrpU75JFHCRy/2iuZh0Vj9wcv+0NX+GBsjQE7UJXd+160+tZiOVYc7sBP2lOMk JcyKKbDq8LNU3STX2N0RYwfijfnAF3UAmCvNun6JT3NES8wxeZ56uXtr+IGco0xvP/qn 8LWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=K1nkYGLmXxVZQrJhOHX5C3Yjum/GvkV8x/L+QphEw5Y=; b=DDVL7JkVONqEGU6l/wVLqILT/NpmOvi/Jr6TgB+RbrrPLlMCFqoISv66alpHyor5Cv +3+MXXEfjqoiOcD6LHS47YmdsNiXJ/9UBwfhwaLL5tKXRTBNV7u6QBx2VSDl7f8oguO9 zFufVNtotZIAckvEvV3qj383zeaARYxVsNvotU6XbjfdkYRkN9S+ShMiVAeafIZWd336 M8BI4vn8aX4QUrvVLFkWzcycmwcsndd8flCJ5pKkGeINvHHAuM2wusMZnvybJQ4H/WUZ rU/yvcEOL5EcgDfHYjQCPoVm3gEHFo2HquLyHPD4x4UbSKML8LWJ4JtSP92BVgucs5dD ZFgw== X-Gm-Message-State: APjAAAWWjgCiuIbfBUxpERVQCoQoD5wzNxgTr0M2K4KKC+pylR01Qg9b 00i/rMUPbAWbYyo0/FjYBWw= X-Received: by 2002:a63:c5b:: with SMTP id 27mr13696567pgm.70.1558201138477; Sat, 18 May 2019 10:38:58 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.73]) by smtp.gmail.com with ESMTPSA id y16sm23283514pfo.133.2019.05.18.10.38.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 May 2019 10:38:58 -0700 (PDT) Date: Sat, 18 May 2019 23:08:52 +0530 From: Hariprasad Kelam To: Steve Longerbeam , Philipp Zabel , Mauro Carvalho Chehab , Greg Kroah-Hartman , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: media: imx: fix Unneeded variable: "ret". Return "0" Message-ID: <20190518173852.GA1191@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix below warning reported by coccichec drivers/staging/media/imx/imx-media-capture.c:617:5-8: Unneeded variable: "ret". Return "0" on line 630 Signed-off-by: Hariprasad Kelam --- drivers/staging/media/imx/imx-media-capture.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/media/imx/imx-media-capture.c b/drivers/staging/media/imx/imx-media-capture.c index 9430c83..b678857 100644 --- a/drivers/staging/media/imx/imx-media-capture.c +++ b/drivers/staging/media/imx/imx-media-capture.c @@ -614,7 +614,6 @@ static int capture_release(struct file *file) struct capture_priv *priv = video_drvdata(file); struct video_device *vfd = priv->vdev.vfd; struct vb2_queue *vq = &priv->q; - int ret = 0; mutex_lock(&priv->mutex); @@ -627,7 +626,7 @@ static int capture_release(struct file *file) v4l2_fh_release(file); mutex_unlock(&priv->mutex); - return ret; + return 0; } static const struct v4l2_file_operations capture_fops = { -- 2.7.4