Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4013106rwb; Tue, 6 Sep 2022 00:44:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR69cbgFKYM7NAq8Cp5j6e8q5AsJLzZ8gSx71I53HivGG3LSFnHLHWPigGN7HF5tdMY9WC+9 X-Received: by 2002:a62:ae17:0:b0:53a:d4f9:4b93 with SMTP id q23-20020a62ae17000000b0053ad4f94b93mr29307467pff.65.1662450278174; Tue, 06 Sep 2022 00:44:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662450278; cv=none; d=google.com; s=arc-20160816; b=fH1dH0Mes+Iqj6jAtDqtmWDOxD3Kb/DZPXD1MYeSXTGjiw7AgPpGA/IvzzO0fOUds1 3goGnZONs973QZGB7RIHdcyk/2Cthr69yMPNtOiqNVXytKz0p30expiIDQYe4NLhsMtR khakUPqBxUQapN6G5QI24cQqTGnqNh39WgH6vkrwQGTG2OjZKiXQ+w3QCy4pPogwoZTn pehqZvo+a+JJuCpOP7OaTdYNoKgmCbeAci8uTRKb7c0te//il0OV4HQ8+TvueP6w+CRB Th32eqsWUaZcz1TtCgseBf7Rs6hwznRmBsAWy9NLyPiQ3DdHwOn9KRZZ+9qvKkPeVW6T Wi6A== 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:dkim-signature; bh=EuJPPf3+gOQ+Mj3XihQl7kx9QMOj/0MzDv+3h+Kjp/Y=; b=SY6V34FtoVlGzSeObL9rvd1J8UmnC3tpuqAhfKPStcKRgRwnZmz/Dur1Qclt2ZgXNm MPwvY48AJKNYY0Vf8gnit2MKwgk1+d/oBWA+x4UjLzeYjJyShO0iQLj/zZNBjHeuoISE HLwvcyYnIAuMUn9KeER0bVsUr8G201ITYRlJgkyb2qXN3Wu2NKpMsCGtuWQO0kTHD8JN fmX+KvyXXo/5NsZ9qnAYUfqq5l38OP7R7k7OQtji6/MEfzmsU4USoheBqNe0yRvHFg7x zJ1JpOtHvhkal301JhjAw+Bhi2s5bjWPvWETxX9xzH9ha1gMQ1O/wN1G2LM0xq323E0R fRtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PxQfsJli; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o18-20020a170902d4d200b001745701280bsi13379887plg.122.2022.09.06.00.44.27; Tue, 06 Sep 2022 00:44:38 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PxQfsJli; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238803AbiIFHRO (ORCPT + 99 others); Tue, 6 Sep 2022 03:17:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238825AbiIFHRM (ORCPT ); Tue, 6 Sep 2022 03:17:12 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 324A37390F; Tue, 6 Sep 2022 00:17:11 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id d12so10441316plr.6; Tue, 06 Sep 2022 00:17:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=EuJPPf3+gOQ+Mj3XihQl7kx9QMOj/0MzDv+3h+Kjp/Y=; b=PxQfsJliUlBvt2c0ZZOHUHv1vw/zQ7b+Wouxon5GDThKnQ0jvdI1QQnAJSojGKWgaw ly8mqnZf8QbUG5FrMXyvdLg+9BBlhSs3KJGDN8P/KyB9a1iPpqKiHKBTipJC3tjdyqxY W//n46TaRVSo2E9o8VSYtZ/CdjK58o7B/HV6bsBtaCDAjhdhpTd/Fq5IZb+M3B/KcfeL EGsvXAKbYa38C/hSa8M49CpOtzo4+ZnLcRGVAFz4PPLiQlrJE9dOvUVl2daScKrfIXqF rt/ayV+Cs1ytUsYK9p+ZWKfjKN6315u6YyjBbAflmG/MZEdCD8FMuUejU+TRNOYB4u7C BK5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=EuJPPf3+gOQ+Mj3XihQl7kx9QMOj/0MzDv+3h+Kjp/Y=; b=28b0IXkeQ69gIspJv6k/pKEg6f7pctkQYIt4M/326TqxvvfeizHR2XGlIwkEggtI0f 4srPm7/AIGwUCAzagU6lSQFPYPG55BiG9AW8j4vfUy9TzqEjq9UqLQr7JlQbhsQqZjQ4 osSLbY6t99rHNHT5YLeNYFNgNasnxTfpmGwqiSQypuzpzVB5d8eQlOpW6KxbmsPI7MGs tgEK2ybpWpdCzFMgJMcW2faa2z/P+c7ARzKKvdWWHX0Ca4+F0DED54pF+lN+WbGovOaS V9S++71VlDEnOiVisxukhpo8jC7Pn+esklaKtgtx4B4dM95C46sXGAcPAmJZthpnsbkQ 3xOg== X-Gm-Message-State: ACgBeo2HtwxLzfAqpMa0g1rz23SEwcQntwDY9wz+yfKY/JkpNTWPws4X DVX30YGUNLSIM5m3TBXzKmQ= X-Received: by 2002:a17:90b:1645:b0:1fe:b8d:307c with SMTP id il5-20020a17090b164500b001fe0b8d307cmr23532316pjb.185.1662448630627; Tue, 06 Sep 2022 00:17:10 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id b130-20020a621b88000000b0052dbad1ea2esm9216700pfb.6.2022.09.06.00.17.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 00:17:10 -0700 (PDT) From: cgel.zte@gmail.com X-Google-Original-From: ye.xingchen@zte.com.cn To: lpieralisi@kernel.org Cc: robh@kernel.org, kw@linux.com, bhelgaas@google.com, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, ye xingchen , Zeal Robot Subject: [PATCH linux-next] PCI: iproc: Remove the unneeded result variable Date: Tue, 6 Sep 2022 07:16:36 +0000 Message-Id: <20220906071636.336853-1-ye.xingchen@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 From: ye xingchen Return the value iproc_pcie_setup_ib() directly instead of storing it in another redundant variable. Reported-by: Zeal Robot Signed-off-by: ye xingchen --- drivers/pci/controller/pcie-iproc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pci/controller/pcie-iproc.c b/drivers/pci/controller/pcie-iproc.c index 2519201b0e51..bd32929ab265 100644 --- a/drivers/pci/controller/pcie-iproc.c +++ b/drivers/pci/controller/pcie-iproc.c @@ -1244,7 +1244,6 @@ static int iproce_pcie_get_msi(struct iproc_pcie *pcie, static int iproc_pcie_paxb_v2_msi_steer(struct iproc_pcie *pcie, u64 msi_addr) { - int ret; struct resource_entry entry; memset(&entry, 0, sizeof(entry)); @@ -1254,8 +1253,7 @@ static int iproc_pcie_paxb_v2_msi_steer(struct iproc_pcie *pcie, u64 msi_addr) entry.res->start = msi_addr; entry.res->end = msi_addr + SZ_32K - 1; - ret = iproc_pcie_setup_ib(pcie, &entry, IPROC_PCIE_IB_MAP_IO); - return ret; + return iproc_pcie_setup_ib(pcie, &entry, IPROC_PCIE_IB_MAP_IO); } static void iproc_pcie_paxc_v2_msi_steer(struct iproc_pcie *pcie, u64 msi_addr, -- 2.25.1