Skip to contentSkip to conversation

net: wireless: ti: no need to initialise statics to false

PATCH In review Jason Wang 2 participants 2 messages Nov 13, 2021 – Nov 29, 2021

Subsystems (3)
lore
Share & tools
lore

Jason Wang

author
#0 lore raw

PATCH 1/1 net: wireless: ti: no need to initialise statics to false

Static variables do not need to be initialized to false. The compiler will do that.

---
 drivers/net/wireless/ti/wlcore/sdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ti/wlcore/sdio.c +1 -1
index 9fd8cf2d270c..72fc41ac83c0 100644
@@ -26,7 +26,7 @@
 #include "wl12xx_80211.h"
 #include "io.h"
 
-static bool dump = false;
+static bool dump;
 
 struct wl12xx_sdio_glue {
 	struct device *dev;
Signature · 1 line
2.33.0
#1 lore raw

Re: wlcore: no need to initialise statics to false

Quoted 4 lines · Jason Wang

Static variables do not need to be initialized to false. The compiler will do that.

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

fa4408b0799a wlcore: no need to initialise statics to false

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

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