Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp407727rdb; Thu, 2 Nov 2023 07:12:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFItn+lMUKT7x0sUaw0DvIiJwoCrxAB4//CPbDW4vfwDepzIkso+bxDYEcysYfgeTVjUG+8 X-Received: by 2002:a05:6a21:193:b0:17a:eddb:acc2 with SMTP id le19-20020a056a21019300b0017aeddbacc2mr21396948pzb.46.1698934348260; 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=ODbKmrw4NbKgZXSu565n0xEXgWGJncZ12FQLqhKQ+wJJO75ApqykhHHt8CbwW1Qf8I O50dxk6mAXoGXpIiOMo/MO7JEJXntH+aKYlsyNTFbrmCwLroKWIB4TU3ONwduiDN+uCV 2O3k9uNXCQivK1/Dz2JhUFQ0aZ9G4Wcoh6hotk+yUjf/W5wy4DRB2+G5LGRIfkY30Ued tnIWa/AF2I/3d9966Mz1dvJXELr2W/XG+8RBacjMn9ADDU84mbHW1zS3YEa5UOb82lq8 0VAfCabh6ZV7tVt14AHMN8mQZs+oYRVODMxzReMQnwArWbjJFO7w62C4V/B8GTez8PBn 0kHg== 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 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id l11-20020a056a00140b00b00690228b1d45si3733709pfu.342.2023.11.02.07.12.22 (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 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 AFD5A822D108; Thu, 2 Nov 2023 07:12:08 -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 S1376754AbjKBOME (ORCPT + 99 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 ); 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 To: Jacopo Mondi Cc: Alexandra Diupina , Kieran Bingham , Laurent Pinchart , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Mauro Carvalho Chehab , Hans de Goede , Sakari Ailus , Greg Kroah-Hartman , Andy Shevchenko , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Rob Herring , 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: 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:08 -0700 (PDT) media_entity_pads_init() will not return 0 only if the 2nd parameter >=3D 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 powerma= nagement") Signed-off-by: Alexandra Diupina --- 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; } =20 - ret =3D 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); =20 ret =3D v4l2_async_register_subdev_sensor(&dev->sd); if (ret) { --=20 2.30.2