From patchwork Thu Oct 3 11:43:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 11172591 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 967701709 for ; Thu, 3 Oct 2019 11:53:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 74AC1215EA for ; Thu, 3 Oct 2019 11:53:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="I8wenRWV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 74AC1215EA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lip6.fr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=eFYbiLxsoD7G7wvE8kZEuDAUotKiucpxRiwqfOiH33w=; b=I8wenRWVHhbP4M HRlbA1+hhHKLTzmu39tosSh3rvMuOEN3Kw2yrqVHb8XC8oEjGzjAF1c11mho6ExfqJbBSoeQz5UiY It0tWAzTNo7ksYqyu01Ka28MHnAIwOvzEg34/Ib+gfFKziRxvcHZa6nGb8NVTUEZXl5jDTv02tCPn icNxuNr9auskDKdtNOSwbl0JVFFI88XOfYxCZcMXBsoOEFq7oI2Ln8J6tx3zaHrR/FaGLX7vJeFLO hK6aHqka/3894eY2vnpE8x/uFxw3/cnIl6bU+sNdBN3C5bXGb+MFP4lb20YAcez3MhoVwlKYmx5R1 35Pp5Vf0JiSSqclQw0DA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iFzfx-0000B0-5I; Thu, 03 Oct 2019 11:53:41 +0000 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1iFzft-0000AR-NJ for linux-arm-kernel@lists.infradead.org; Thu, 03 Oct 2019 11:53:39 +0000 X-IronPort-AV: E=Sophos;i="5.67,252,1566856800"; d="scan'208";a="404557181" Received: from portablejulia.rsr.lip6.fr ([132.227.76.63]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Oct 2019 13:43:37 +0200 Date: Thu, 3 Oct 2019 13:43:37 +0200 (CEST) From: Julia Lawall X-X-Sender: julia@hadrien To: Manivannan Sadhasivam Subject: [PATCH] media: i2c: fix returnvar.cocci warnings Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191003_045338_032884_1747CB28 X-CRM114-Status: GOOD ( 10.91 ) X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [192.134.164.83 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.7 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) 0.1 HDRS_LCASE Odd capitalization of message header X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, c.barrett@framos.com, linux-kernel@vger.kernel.org, a.brela@framos.com, robh+dt@kernel.org, sakari.ailus@iki.fi, kbuild-all@01.org, Manivannan Sadhasivam , mchehab@kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: kbuild test robot Remove unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci Fixes: a80daf4057d7 ("media: i2c: Add IMX290 CMOS image sensor driver") CC: Manivannan Sadhasivam Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- url: https://github.com/0day-ci/linux/commits/Manivannan-Sadhasivam/dt-bindings-media-i2c-Add-IMX290-CMOS-sensor-binding/20191003-175652 base: git://linuxtv.org/media_tree.git master :::::: branch date: 2 hours ago :::::: commit date: 2 hours ago Please take the patch only if it's a positive warning. Thanks! imx290.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/media/i2c/imx290.c +++ b/drivers/media/i2c/imx290.c @@ -447,7 +447,6 @@ static int imx290_set_fmt(struct v4l2_su const struct imx290_mode *mode; struct v4l2_mbus_framefmt *format; unsigned int i; - int ret = 0; mutex_lock(&imx290->lock); @@ -483,7 +482,7 @@ static int imx290_set_fmt(struct v4l2_su mutex_unlock(&imx290->lock); - return ret; + return 0; } static int imx290_entity_init_cfg(struct v4l2_subdev *subdev,