From: Bjorn Helgaas <helgaas@kernel.org>
To: Jiwon Kang <kkjiwon04@gmail.com>
Cc: bhelgaas@google.com, linux-pci@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PCI: Remove unnecessary static initialization to false
Date: Thu, 10 Sep 2026 14:16:11 -0500 [thread overview]
Message-ID: <20260910191611.GA338709@bhelgaas> (raw)
In-Reply-To: <20260730053337.22427-1-kkjiwon04@gmail.com>
On Thu, Jul 30, 2026 at 02:33:37PM +0900, Jiwon Kang wrote:
> Static variables are zero-initialized by default, so explicitly
> initializing to false is redundant. Remove the initializer to
> follow kernel coding style.
Thanks; can you repost this with a Signed-off-by?
> ---
> 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
>
prev parent reply other threads:[~2026-09-10 19:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-30 5:33 [PATCH] PCI: Remove unnecessary static initialization to false Jiwon Kang
2026-07-30 5:37 ` sashiko-bot
2026-09-10 19:16 ` Bjorn Helgaas [this message]
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=20260910191611.GA338709@bhelgaas \
--to=helgaas@kernel.org \
--cc=bhelgaas@google.com \
--cc=kkjiwon04@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox