Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4270348imw; Tue, 19 Jul 2022 03:27:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vr6eK/7UTWok7KoSs8/oqzRpNjogqOv12J/+sAKDMExnvl24hSH9i8OcZNk8w4NFiEDO++ X-Received: by 2002:a65:58cb:0:b0:415:ea6a:c535 with SMTP id e11-20020a6558cb000000b00415ea6ac535mr28187379pgu.100.1658226476548; Tue, 19 Jul 2022 03:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658226476; cv=none; d=google.com; s=arc-20160816; b=FTGJymHkw6imUIwCfB21Kktt2DeCrb59+IyUp5SVURTyDq31MnFTzVApzT7ELu4+q3 qCUBD+dHi5P/i4tHhLSsKUaZMSTQjcAdcf3JZ9shsFCk0rASj84mv1MNG7WX8F8Oo9VD r2edURggdsX629liLs+exGTpoy9QEmWvUDhrBynuA73/JcYZQ5LIJpIZN8IvtUeza7kX zpjnZ+McDQHt/M0PxoFKHQ16BhMh089su6NeCG5rQWd4UnB3vnvnM/ozNMwvRk/ibBGu 5hLPmQuhAmXHjzFlAevYux+PNwm7P2nUmaIfJuId+Av30AJZiT+nJr1OzIOATZWf64v4 YksA== 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 :message-id:date:subject:cc:to:from; bh=cxLYeUaID0OxWYGvWvvzLAHlYQBrvAQWy9u/KCAPnS8=; b=CXzj2X2lyd0EirnYhjqLSb4OTJrXlmUnmnbU1Gh9dJWh3wnuD/S6sWUj8pXsaQNPFU DsSMawcXpSIuf0Hic79n8GM7ZP3waqkfsowLVfWuBNW01OVPcfr/QravsbbsOOXHTbRZ IvEDjDRwBrIX/RExbo4yM9vdqFnDOKBqt+14aaX+HYqARQe5UjZomgLOXvbZZzGlhMiY ufYzbnEJvcupxVbGQvTyBuFBub89GayQQQH4pRZ9rGbjj1zhy+agUZNCkrtH51fBmHNa CQuH4XHeBYTZjjiVM+emRsKFMAlY1u/5nBdwlm16jD6aStno+xiZJFaN4mcaYNDg4aUs hWwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ispras.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be15-20020a056a001f0f00b005284d10c1d3si902629pfb.333.2022.07.19.03.27.41; Tue, 19 Jul 2022 03:27:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ispras.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235290AbiGSKX2 (ORCPT + 99 others); Tue, 19 Jul 2022 06:23:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbiGSKX1 (ORCPT ); Tue, 19 Jul 2022 06:23:27 -0400 Received: from mail.ispras.ru (mail.ispras.ru [83.149.199.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 933941114C; Tue, 19 Jul 2022 03:23:26 -0700 (PDT) Received: from localhost.localdomain (unknown [83.149.199.65]) by mail.ispras.ru (Postfix) with ESMTPS id C47D140737D5; Tue, 19 Jul 2022 10:23:24 +0000 (UTC) From: Andrey Strachuk To: Tero Kristo Cc: Andrey Strachuk , Michael Turquette , Stephen Boyd , Tony Lindgren , Colin Ian King , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, ldv-project@linuxtesting.org Subject: [PATCH] clk/ti/adpll: remove useless comparison in ti_adpll_free_resources() Date: Tue, 19 Jul 2022 13:23:19 +0300 Message-Id: <20220719102319.5912-1-strochuk@ispras.ru> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 Local variable 'ac' is initialized by an address of field of ti_adpll_data, so it does not make sense to compare 'ac' with NULL. Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Andrey Strachuk Fixes: 21330497f303 ("clk: ti: Add support for dm814x ADPLL") --- drivers/clk/ti/adpll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/ti/adpll.c b/drivers/clk/ti/adpll.c index 962502ca7ff0..7207915f9440 100644 --- a/drivers/clk/ti/adpll.c +++ b/drivers/clk/ti/adpll.c @@ -772,7 +772,7 @@ static void ti_adpll_free_resources(struct ti_adpll_data *d) for (i = TI_ADPLL_M3; i >= 0; i--) { struct ti_adpll_clock *ac = &d->clocks[i]; - if (!ac || IS_ERR_OR_NULL(ac->clk)) + if (IS_ERR_OR_NULL(ac->clk)) continue; if (ac->cl) clkdev_drop(ac->cl); -- 2.25.1