From: Jiwon Kang <kkjiwon04@gmail.com>
To: bhelgaas@google.com
Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
Jiwon Kang <kkjiwon04@gmail.com>
Subject: [PATCH] PCI: Remove unnecessary static initialization to false
Date: Thu, 30 Jul 2026 14:33:37 +0900 [thread overview]
Message-ID: <20260730053337.22427-1-kkjiwon04@gmail.com> (raw)
Static variables are zero-initialized by default, so explicitly
initializing to false is redundant. Remove the initializer to
follow kernel coding style.
---
drivers/pci/pci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 77b17b13ee615..ee2beaacbc73f 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -6671,7 +6671,7 @@ static void of_pci_reserve_static_domain_nr(void)
static int of_pci_bus_find_domain_nr(struct device *parent)
{
- static bool static_domains_reserved = false;
+ static bool static_domains_reserved;
int domain_nr;
/* On the first call scan device tree for static allocations. */
--
2.34.1
next reply other threads:[~2026-07-30 5:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-30 5:33 Jiwon Kang [this message]
2026-07-30 5:37 ` [PATCH] PCI: Remove unnecessary static initialization to false sashiko-bot
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=20260730053337.22427-1-kkjiwon04@gmail.com \
--to=kkjiwon04@gmail.com \
--cc=bhelgaas@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.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 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.