diff mbox series

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

Message ID 20211113063551.257804-1-wangborong@cdjrlc.com (mailing list archive)
State Accepted
Commit fa4408b0799a7d52ec0b28f97ab0a93401e8e83f
Delegated to: Kalle Valo
Headers show
Series net: wireless: ti: no need to initialise statics to false | expand

Commit Message

Jason Wang Nov. 13, 2021, 6:35 a.m. UTC
Static variables do not need to be initialized to false. The
compiler will do that.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
---
 drivers/net/wireless/ti/wlcore/sdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kalle Valo Nov. 29, 2021, 10:44 a.m. UTC | #1
Jason Wang <wangborong@cdjrlc.com> wrote:

> Static variables do not need to be initialized to false. The
> compiler will do that.
> 
> Signed-off-by: Jason Wang <wangborong@cdjrlc.com>

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

fa4408b0799a wlcore: no need to initialise statics to false
diff mbox series

Patch

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;