Message ID | 20231102141135.369-4-adiupina@astralinux.ru |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp382651vqu; Thu, 2 Nov 2023 07:12:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEb1ziyHza5gSoZ+j69ufdO1CkOqz/kqc/0SJV4P/DuHl6rscVAwJBOgoD0l6QoQzHw7iUU X-Received: by 2002:a17:902:f94f:b0:1cc:3be6:b714 with SMTP id kx15-20020a170902f94f00b001cc3be6b714mr11956914plb.23.1698934348957; Thu, 02 Nov 2023 07:12:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698934348; cv=none; d=google.com; s=arc-20160816; b=Xb0phGfYbNTg/nM1znISpr6VSfGY97FM3mwTmzkNPGib+Zdaq48gSlxVYNpgEbqGyf DO/ed1wHEV34SmrHmfoo4vxBpy6waw8B31YompctQ4JcEbD2D3tUWnTCWdpBflMUgfFJ WcMzagAuR7YtXfNamwq6unW0Eojpwsp3JNPOr8HaOCDYEgXmHVhTAvpbMQUBWp4aUy1c UFgaP0trBj4kZragKuxSkRIfEtKI0fptsqHvZ1j0v9V44i5E9QSgJJmgg8wHSJ8POZUY aWZe8O6AKkPWn7DPX3PEzJ6AMYnGvH8NdszbMRT2T/bhetjIQH8j7Nvi2warTHBY90Yv U1iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=kYXiK/2monBzeWiSDJ56zmLEIWPA6s7CFZSCiCRlbFY=; fh=1Cbc0rhjwaAf/ZYg/W1eU1k0M7CFrQPZcQfOVlaXlRc=; b=NaCJhiCmolQWAS7gEGz6fF5gw/Jlk+kUQX/hYzE9PA8qa+/jLAUPsK8atjpQj9D8og GzY9lgVx7mvC4goM66LNde3CHK8iFc5qig0NB1YRxWREIeG/3oM69UCA5BQ6WN1udRw2 pVzPgSxbNHMps2hedRz+fyYk7ZyH1SANwC5KA7mjpBTYyW9liHy75FQEBE9cRroi/ur+ iWw3zuYVhPFK56asPYHOKSfF8wkLvSEsUS0Q30I3mycNok5brf7CSFx+mCHKasXCRDW/ O6Vg+1KK0kRjIY+dC3L2Y+1I8O/OFmZ8WY2qzi5B0uGYlZtdDpcx1mQmopKEMjbOagQo gn1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h21-20020a170902f7d500b001cc2216e87bsi4832300plw.351.2023.11.02.07.12.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 07:12:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9254C822D101; Thu, 2 Nov 2023 07:12:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376774AbjKBOME (ORCPT <rfc822;lhua1029@gmail.com> + 36 others); Thu, 2 Nov 2023 10:12:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235250AbjKBOL6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 2 Nov 2023 10:11:58 -0400 Received: from mail.astralinux.ru (mail.astralinux.ru [217.74.38.119]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B922C12E; Thu, 2 Nov 2023 07:11:55 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.astralinux.ru (Postfix) with ESMTP id 2F84A186AD7D; Thu, 2 Nov 2023 17:11:54 +0300 (MSK) Received: from mail.astralinux.ru ([127.0.0.1]) by localhost (rbta-msk-vsrv-mail01.astralinux.ru [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Mit1H4cav2aX; Thu, 2 Nov 2023 17:11:53 +0300 (MSK) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.astralinux.ru (Postfix) with ESMTP id D32D0186AD9B; Thu, 2 Nov 2023 17:11:53 +0300 (MSK) X-Virus-Scanned: amavisd-new at astralinux.ru Received: from mail.astralinux.ru ([127.0.0.1]) by localhost (rbta-msk-vsrv-mail01.astralinux.ru [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id CEjmqHfM5iRG; Thu, 2 Nov 2023 17:11:53 +0300 (MSK) Received: from rbta-msk-lt-302690.astralinux.ru (unknown [10.177.237.131]) by mail.astralinux.ru (Postfix) with ESMTPSA id E2B80186AD86; Thu, 2 Nov 2023 17:11:51 +0300 (MSK) From: Alexandra Diupina <adiupina@astralinux.ru> To: Jacopo Mondi <jacopo+renesas@jmondi.org> Cc: Alexandra Diupina <adiupina@astralinux.ru>, Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>, Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>, =?utf-8?q?Nik?= =?utf-8?q?las_S=C3=B6derlund?= <niklas.soderlund+renesas@ragnatech.se>, Mauro Carvalho Chehab <mchehab@kernel.org>, Hans de Goede <hdegoede@redhat.com>, Sakari Ailus <sakari.ailus@linux.intel.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Andy Shevchenko <andy.shevchenko@gmail.com>, =?utf-8?q?Uwe_Kleine-K=C3=B6ni?= =?utf-8?q?g?= <u.kleine-koenig@pengutronix.de>, Rob Herring <robh@kernel.org>, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, lvc-project@linuxtesting.org Subject: [PATCH 4/4] Remove redundant return value check Date: Thu, 2 Nov 2023 17:11:35 +0300 Message-Id: <20231102141135.369-4-adiupina@astralinux.ru> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231102141135.369-1-adiupina@astralinux.ru> References: <20231102141135.369-1-adiupina@astralinux.ru> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 02 Nov 2023 07:12:10 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781461764372167446 X-GMAIL-MSGID: 1781461784056911255 |
Series |
[1/4] Remove redundant return value check
|
|
Commit Message
Alexandra Diupina
Nov. 2, 2023, 2:11 p.m. UTC
media_entity_pads_init() will not return 0 only if the
2nd parameter >= MEDIA_ENTITY_MAX_PADS (512), but 1 is
passed, so checking the return value is redundant
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 2ec5bfe0c24a ("media: atomisp: gc0310: Switch over to ACPI powermanagement")
Signed-off-by: Alexandra Diupina <adiupina@astralinux.ru>
---
drivers/staging/media/atomisp/i2c/atomisp-gc0310.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/staging/media/atomisp/i2c/atomisp-gc0310.c b/drivers/staging/media/atomisp/i2c/atomisp-gc0310.c index 9a11793f34f7..62550504b68c 100644 --- a/drivers/staging/media/atomisp/i2c/atomisp-gc0310.c +++ b/drivers/staging/media/atomisp/i2c/atomisp-gc0310.c @@ -660,11 +660,7 @@ static int gc0310_probe(struct i2c_client *client) return ret; } - ret = media_entity_pads_init(&dev->sd.entity, 1, &dev->pad); - if (ret) { - gc0310_remove(client); - return ret; - } + media_entity_pads_init(&dev->sd.entity, 1, &dev->pad); ret = v4l2_async_register_subdev_sensor(&dev->sd); if (ret) {