Thread (2 messages) 2 messages, 2 authors, 2021-11-29

[PATCH] net: wireless: ti: no need to initialise statics to false

flat view
STALE1796d LANDED

From: Jason Wang <hidden>
Date: 2021-11-13 06:36:31
Also in: linux-wireless, lkml
Subsystem: the rest, ti wilink wireless drivers · Maintainer: Linus Torvalds

Status: Landed in mainline as fa4408b0799a on 2021-11-29.

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

Signed-off-by: Jason Wang <redacted>
---
 drivers/net/wireless/ti/wlcore/sdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ti/wlcore/sdio.c b/drivers/net/wireless/ti/wlcore/sdio.c
index 9fd8cf2d270c..72fc41ac83c0 100644
--- a/drivers/net/wireless/ti/wlcore/sdio.c
+++ b/drivers/net/wireless/ti/wlcore/sdio.c
@@ -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;
-- 
2.33.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help