From patchwork Wed Apr 21 14:04:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12216193 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC0F1C433B4 for ; Wed, 21 Apr 2021 14:04:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AC64F61451 for ; Wed, 21 Apr 2021 14:04:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243190AbhDUOFQ (ORCPT ); Wed, 21 Apr 2021 10:05:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:39982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235783AbhDUOFQ (ORCPT ); Wed, 21 Apr 2021 10:05:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 69E2761139; Wed, 21 Apr 2021 14:04:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619013883; bh=5OGO+AtIx6WC8ePcztw83ciGI9Z5SbHrkm/X3Q/Y7f0=; h=From:To:Cc:Subject:Date:From; b=eB67MTjq1psoXvHTQBleOqpux5gfW5UyclZRw2tiFBrku45n7JUn1WoU3mHeg7vB3 4qrUEMSNojag57boD66K1yeBc+9zJJvpdnraUSrlLp9sA3F2wr4THlCvQrlB/S+wF5 ND2NR/oKya4a6Buc+wDjwm9uB6B6aBFqVYQWKKGOCHjBhA2Iha55H33J0oGRp0vxRe LueLFx5FNR9neosH0M34nXESLRwKpCdIP6vRQT1pxMiyMdvN3iensgnl2SpC5EvCTY w1OGu8uTX8j7WHG2Ju36+zDFbYIZLn+LsEghKFDPFgDcyDKMHB9Fm6BNRN93gZiTEu zhWrql+5sQBaw== From: Arnd Bergmann To: Bjorn Helgaas , Prike Liang , Shyam Sundar S K , Alex Deucher , Chaitanya Kulkarni Cc: Arnd Bergmann , Lorenzo Pieralisi , Kai-Heng Feng , =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= , Rajat Jain , Andy Shevchenko , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] nvme: fix unused variable warning Date: Wed, 21 Apr 2021 16:04:20 +0200 Message-Id: <20210421140436.3882411-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org From: Arnd Bergmann The function was introduced with a variable that is never referenced: drivers/pci/quirks.c: In function 'quirk_amd_nvme_fixup': drivers/pci/quirks.c:312:25: warning: unused variable 'rdev' [-Wunused-variable] Fixes: 9597624ef606 ("nvme: put some AMD PCIE downstream NVME device to simple suspend/resume path") Signed-off-by: Arnd Bergmann Reviewed-by: Krzysztof WilczyƄski --- drivers/pci/quirks.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 2e24dced699a..c86ede081534 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -309,8 +309,6 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8151_0, quirk_nopci static void quirk_amd_nvme_fixup(struct pci_dev *dev) { - struct pci_dev *rdev; - dev->dev_flags |= PCI_DEV_FLAGS_AMD_NVME_SIMPLE_SUSPEND; pci_info(dev, "AMD simple suspend opt enabled\n");