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: 11172583 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 973DB112B for ; Thu, 3 Oct 2019 11:43:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7FD9721D81 for ; Thu, 3 Oct 2019 11:43:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730149AbfJCLnk (ORCPT ); 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 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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,