Thread (3 messages) flat view 3 messages, 2 authors, 2021-08-12
STALE1844d

[PATCH] PCI: Remove duplicate #ifdef in pci_try_set_mwi()

From: Utkarsh Verma <hidden>
Date: 2021-08-11 23:46:46
Also in: linux-pci, lkml
Subsystem: pci subsystem, the rest · Maintainers: Bjorn Helgaas, Linus Torvalds

Remove the unnecessary #ifdef PCI_DISABLE_MWI, because pci_set_mwi()
performs the same check.

Signed-off-by: Utkarsh Verma <redacted>
---
 drivers/pci/pci.c | 4 ----
 1 file changed, 4 deletions(-)
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index aacf575c15cf..7d4c7c294ef2 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -4456,11 +4456,7 @@ EXPORT_SYMBOL(pcim_set_mwi);
  */
 int pci_try_set_mwi(struct pci_dev *dev)
 {
-#ifdef PCI_DISABLE_MWI
-	return 0;
-#else
 	return pci_set_mwi(dev);
-#endif
 }
 EXPORT_SYMBOL(pci_try_set_mwi);
 
-- 
2.25.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help