From patchwork Sat May 18 17:38:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hariprasad Kelam X-Patchwork-Id: 10948989 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8848D933 for ; Sat, 18 May 2019 17:39:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7384D28518 for ; Sat, 18 May 2019 17:39:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 64208208C2; Sat, 18 May 2019 17:39:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E65F6208C2 for ; Sat, 18 May 2019 17:39:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=nENvccybqBsceYOzwxIYn5r51w26h6jhtnHbQcwZH0o=; b=IiTXlUHJ8mAeL1 dW+N6/m1I8SkctiDxOOE7/PGfRPD5p99FIGZ5Nsb/3m5OzVPLYv63LokVDUMbp7kX3SvXkAdD2t1z uFqQ+JGN98IiSAE+/6cz+sBXUy2cc8f/OLZqapvJ1sGV+SVp+yd5XDohOmiytwns2Xbsf8R5HY1iX qOAthuBf/HbKhSpfpGG0I2Ue5IpVsRXNbHpdUn5DvPDi3xXbHBEgSYkB6oSGUbWLPqT7CAqc7BIjC K7ZJnNmxAXJCao9nLmxMbdEeBI3VmdcCYoMTjYcfPBWDe8gEdTZcw1/+IAFtIol9Tp94+AELG74gs WsUCt6EevCoNRXDYVbdw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hS3IU-0007tc-Vh; Sat, 18 May 2019 17:39:02 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hS3IR-0007st-Ei for linux-arm-kernel@lists.infradead.org; Sat, 18 May 2019 17:39:00 +0000 Received: by mail-pg1-x541.google.com with SMTP id w22so4771769pgi.6 for ; 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=EFxI3tvbcs3h3GaKt1XQ1jwVIg8t5IcgzrbCorqXbSb2EwyDT7R46bWVAoIW+yEfb7 +/NPgwd4vZu+wxxDxIFx0dbw7eYQA7wA8KhAX/HCjwAIz84RSCvtb7KfautskAF4yKVn VVMcS5xwji1Uy51QqcvzLmo6XBs68JyLEF+6DsNdeqvy1s6Bf8ApJlu7ij8Skjs99PqC 1jQk07azTNSbNKM3JBFBoiZ2rl07lEisg7togQAROm7r6JOh5TriEZ6o5J4ClAltEsFf 95gZg96nvSmi4bHdSm0mV0IyhaaWdVhMgEi8oma53SrMTdEC7reu7T+Nv/3EZMcxQFwV JnxQ== X-Gm-Message-State: APjAAAXUUeOJErD0LvEgIWTrpO5eKqTSKGeDeLgg6NFrhMVhdcbKoAlA nR04G/Yz4eIkPJMKn6W63pg= X-Google-Smtp-Source: APXvYqzl9xVBK5tVB4brfCl3wCx/KY1AhgMnASNhuGFaPw+Hu5UPrOmG3gj5xYZHLy+UhgU9oGwz/Q== 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-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190518_103859_542581_07BD81E8 X-CRM114-Status: GOOD ( 13.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Fabio Estevam --- 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 = {