linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Aakash Hemadri <aakashhemadri123@gmail.com>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: Shuah Khan <skhan@foundation.org>,
	linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 3/4] PCI: Prefer IS_ENABLED(CONFIG_HOTPLUG_PCI)
Date: Sun, 15 Aug 2021 01:42:06 +0530	[thread overview]
Message-ID: <0f6a7e20c358ac4d3add6076cc6011166edb1999.1628957100.git.aakashhemadri123@gmail.com> (raw)
In-Reply-To: <cover.1628957100.git.aakashhemadri123@gmail.com>

Fix checkpatch.pl WARNING: Prefer IS_ENABLED(CONFIG_HOTPLUG_PCI) over
defined(CONFIG_HOTPLUG_PCI) || defined(CONFIG_HOTPLUG_PCI_MODULE)

Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>
---
 drivers/pci/slot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/slot.c b/drivers/pci/slot.c
index a9678589ed23..8d1a983027b7 100644
--- a/drivers/pci/slot.c
+++ b/drivers/pci/slot.c
@@ -323,7 +323,7 @@ void pci_destroy_slot(struct pci_slot *slot)
 }
 EXPORT_SYMBOL_GPL(pci_destroy_slot);
 
-#if defined(CONFIG_HOTPLUG_PCI) || defined(CONFIG_HOTPLUG_PCI_MODULE)
+#if IS_ENABLED(CONFIG_HOTPLUG_PCI)
 #include <linux/pci_hotplug.h>
 /**
  * pci_hp_create_module_link - create symbolic link to hotplug driver module
-- 
2.32.0


  parent reply	other threads:[~2021-08-14 20:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-14 20:12 [PATCH 0/4] Fix checkpatch.pl WARNINGS Aakash Hemadri
2021-08-14 20:12 ` [PATCH 1/4] PCI: Missing blank line after declarations Aakash Hemadri
2021-08-14 20:12 ` [PATCH 2/4] PCI: Symbolic permissions 'S_IRUGO' are not preferred Aakash Hemadri
2021-08-14 20:12 ` Aakash Hemadri [this message]
2021-08-14 20:12 ` [PATCH 4/4] PCI: No space before tabs Aakash Hemadri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0f6a7e20c358ac4d3add6076cc6011166edb1999.1628957100.git.aakashhemadri123@gmail.com \
    --to=aakashhemadri123@gmail.com \
    --cc=bhelgaas@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=skhan@foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).