Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp88643pxf; Wed, 10 Mar 2021 00:54:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzNTvALzW4Ly1aTi8Q5ZYNiVWmWLYF2PLH79wrlWXuQgQ3IYY47zD9bek08EUZ33xzf7lze X-Received: by 2002:a17:906:38da:: with SMTP id r26mr2542429ejd.251.1615366452319; Wed, 10 Mar 2021 00:54:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615366452; cv=none; d=google.com; s=arc-20160816; b=sVAA9Yqnf+fSLWaxIxOR9xyKFgL7pkamUJhtWdGTm7AJ9MgJ2qgGTIe9fFFnPWcc9M SAfuXRPp7iZ6Tr6oGPlCdvvXHG5CEKDe2TAJSZ4nZmzwGyFVWVHKclVE287/5ZSr1y4J LhMjeSX7IltOe+cfUgnzLhLHfB6RjSgoslJuyp39zxa4YGQUET/8x8QrT6jGrG2WYJV3 yWCrIrNzaeHsfHkcs56cUzdNmyS55doCWaFCJgv7Vv4yMBmpEQkATzXMXnIUi7SA9ahU EMGGjYS1mzufHF3K9zCieYvL4K8xB8oVv8REc/gV3LbnkRR+z74MdoMEEUJc8B5j3faP 3eIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=Ltw/cL3yInpMhC2oZNlQjsVEMT8UX38HhjiU19dor5w=; b=Akqsze48Wd6mq3FRxiBhtBCCk1nKoVUr3/Z4E+Ihm4mhEOg2U64eXh/Dv/gzUVANNU tK7dYhoEYVl1ZFezSV0DX1/of8SyCX80joLmfDDn8nyNn+3XG2+VZ0A7TOhPXofpVQxd +kT8LvC5Yid/rXyFXD/L3BESIJZVb5nQ692oImV6mXA3lbGMEMMCpEL40/wRx/+7NwgX Dhb/wrakGWXo1w6hgKyk3TlU0O0QWT+QtoU1NOMWxBvIA3oLSPcJKi6QmXWw5O/4uGTr zLT37v5XKscSCqYhi98omUFEKkCcZgbiMuiJc/94vz7FawavNGsxLL1ST3GF5tuCvN/a zEJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w11si11854192ede.449.2021.03.10.00.53.50; Wed, 10 Mar 2021 00:54:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232323AbhCJIwd (ORCPT + 99 others); Wed, 10 Mar 2021 03:52:33 -0500 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:57338 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232484AbhCJIwT (ORCPT ); Wed, 10 Mar 2021 03:52:19 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0URGKhcv_1615366335; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0URGKhcv_1615366335) by smtp.aliyun-inc.com(127.0.0.1); Wed, 10 Mar 2021 16:52:16 +0800 From: Yang Li To: mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] media: i2c: remove unneeded variable 'ret' Date: Wed, 10 Mar 2021 16:52:14 +0800 Message-Id: <1615366334-11126-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: ./drivers/media/i2c/ov8865.c:2527:5-8: Unneeded variable: "ret". Return "0" on line 2536 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/media/i2c/ov8865.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/i2c/ov8865.c b/drivers/media/i2c/ov8865.c index 36a60fb..2db052f 100644 --- a/drivers/media/i2c/ov8865.c +++ b/drivers/media/i2c/ov8865.c @@ -2524,7 +2524,6 @@ static int ov8865_g_frame_interval(struct v4l2_subdev *subdev, { struct ov8865_sensor *sensor = ov8865_subdev_sensor(subdev); const struct ov8865_mode *mode; - int ret = 0; mutex_lock(&sensor->mutex); @@ -2533,7 +2532,7 @@ static int ov8865_g_frame_interval(struct v4l2_subdev *subdev, mutex_unlock(&sensor->mutex); - return ret; + return 0; } static const struct v4l2_subdev_video_ops ov8865_subdev_video_ops = { -- 1.8.3.1