Skip to contentSkip to conversation

bcma: drop unneeded initialization value

PATCH In review Sohaib Mohamed 2 participants 2 messages Sep 30, 2021 – Oct 5, 2021 Broadcom specific amba driver (bcma)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bcma: drop unneeded initialization value

Do not initialise statics to 0
ERROR found by checkpatch.pl

---
 drivers/bcma/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bcma/main.c +1 -1
index c6d6ba0d00b1..8e7ca3e4c8c4 100644
@@ -20,7 +20,7 @@ MODULE_DESCRIPTION("Broadcom's specific AMBA driver");
 MODULE_LICENSE("GPL");
 
 /* contains the number the next bus should get. */
-static unsigned int bcma_bus_next_num = 0;
+static unsigned int bcma_bus_next_num;
 
 /* bcma_buses_mutex locks the bcma_bus_next_num */
 static DEFINE_MUTEX(bcma_buses_mutex);
Signature · 1 line
2.25.1
#1 lore raw
Quoted 4 lines · Sohaib Mohamed

Do not initialise statics to 0
ERROR found by checkpatch.pl

Patch applied to wireless-drivers-next.git, thanks.

5668958f6a92 bcma: drop unneeded initialization value

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches