All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] PCI: Remove duplicate #ifdef in pci_try_set_mwi()
@ 2021-08-11 23:46 ` Utkarsh Verma
  0 siblings, 0 replies; 6+ messages in thread
From: Utkarsh Verma @ 2021-08-11 23:46 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: linux-pci, linux-kernel, linux-kernel-mentees, Shuah Khan, Utkarsh Verma

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

Signed-off-by: Utkarsh Verma <utkarshverma294@gmail.com>
---
 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


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

end of thread, other threads:[~2021-08-12 10:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-11 23:46 [PATCH] PCI: Remove duplicate #ifdef in pci_try_set_mwi() Utkarsh Verma
2021-08-11 23:46 ` Utkarsh Verma
2021-08-12  6:49 ` Greg KH
2021-08-12  6:49   ` Greg KH
2021-08-12 10:55   ` Utkarsh Verma
2021-08-12 10:55     ` Utkarsh Verma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.