public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme: fix unused variable warning
@ 2021-04-21 14:04 Arnd Bergmann
  2021-04-21 16:57 ` Krzysztof Wilczyński
  2021-04-30 17:57 ` Bjorn Helgaas
  0 siblings, 2 replies; 6+ messages in thread
From: Arnd Bergmann @ 2021-04-21 14:04 UTC (permalink / raw)
  To: Bjorn Helgaas, Prike Liang, Shyam Sundar S K, Alex Deucher,
	Chaitanya Kulkarni
  Cc: Arnd Bergmann, Lorenzo Pieralisi, Kai-Heng Feng,
	Krzysztof Wilczyński, Rajat Jain, Andy Shevchenko, linux-pci,
	linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

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 <arnd@arndb.de>
---
 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");
 
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-04-30 19:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-21 14:04 [PATCH] nvme: fix unused variable warning Arnd Bergmann
2021-04-21 16:57 ` Krzysztof Wilczyński
2021-04-30 17:57 ` Bjorn Helgaas
2021-04-30 18:34   ` Andy Shevchenko
2021-04-30 19:00     ` Bjorn Helgaas
2021-04-30 19:23       ` Deucher, Alexander

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox