Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp255713ybn; Thu, 3 Oct 2019 04:44:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqysBdkArXzYZkd1uuqmkZK3VrngHH/ve3b5+BtBk9EqxelBRznGPvV/SAKwjbMLF+xsWQzR X-Received: by 2002:a50:a7c4:: with SMTP id i62mr8829906edc.92.1570103086387; Thu, 03 Oct 2019 04:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570103086; cv=none; d=google.com; s=arc-20160816; b=f5YiNa0CHnf4jLwWZ++YqGTtuynRf6yxRHEzDiqG8vsn3x9gHLiuKgC0sGfltDJTNc ISKEvUV1uGRqjVX/emS/75Ob6FUbxlpsWvBPatt2Ci1wKTP+g4RbueKRVGBHyR0aeIhO W9TezkwvTZAZNZXxMfbAHGNzePcvKw5+3DcisdYnunbTVhOZFaJJXx4UF8+BOQ3uskSo 1zM3FhN0op8FknuRAzudtr9HmmIzUu2BVQQG4yG1T8RnVS2yjkcEdNK76BQ0QUHmPzaZ RWmNb+ysz3faS9CNSLSYgtlAmGELL5mlQpRkyDq8PITwijjhAVth1V8FqVoFcDVq7fad PFLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date; bh=fw+GCpW+CE7nqpq7NKDzGPx5tBBYWm7H7HCyTfkj/Kw=; b=ZV1rgUu15lIFHA5qenkzF5mA4m94WtCYkrIkDEp/JAImPGTml9zH8qfHkt+KpZNfLk UbETRMd3d6/Zg70epN1vMWJPMVsPjrnDXqtFOBZggzEOzH0YRiUaKOTRCY+2lQ2PGC5S 3W6tIgzP/3vxK8P69Yr/Vp204rySCRcmTlVa8MKgeE/ONyfAP1VU4slfxs07EWWHvxNo AESjBRiUq0DCNb27dI93z4A+oSJ28NFRz/u4g65DrahesqvZttfzZ8RgqN8tevC+tFW9 fAmtgccDkD3se3VyMdPB+kg26l6zp9L66eQMbRq/LyxoqcYK71SvSIY7FS0kP0oPUWqC gAlw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rl13si1021996ejb.228.2019.10.03.04.44.21; Thu, 03 Oct 2019 04:44:46 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730255AbfJCLnk (ORCPT + 99 others); Thu, 3 Oct 2019 07:43:40 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:30723 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729823AbfJCLnj (ORCPT ); Thu, 3 Oct 2019 07:43:39 -0400 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 cc: mchehab@kernel.org, robh+dt@kernel.org, sakari.ailus@iki.fi, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, c.barrett@framos.com, a.brela@framos.com, Manivannan Sadhasivam , kbuild-all@01.org Subject: [PATCH] media: i2c: fix returnvar.cocci warnings Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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,