[PATCH] PCI: Remove unnecessary static initialization to false

Jiwon Kang <[email protected]>
Newsgroups org.kernel.vger.linux-pci,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.