linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: wireless: ti: no need to initialise statics to false
@ 2021-11-13  6:35 Jason Wang
  2021-11-29 10:44 ` wlcore: " Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Wang @ 2021-11-13  6:35 UTC (permalink / raw)
  To: davem; +Cc: kvalo, kuba, wangborong, linux-wireless, netdev, linux-kernel

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(-)

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: wlcore: no need to initialise statics to false
  2021-11-13  6:35 [PATCH] net: wireless: ti: no need to initialise statics to false Jason Wang
@ 2021-11-29 10:44 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2021-11-29 10:44 UTC (permalink / raw)
  To: Jason Wang; +Cc: davem, kuba, wangborong, linux-wireless, netdev, linux-kernel

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

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20211113063551.257804-1-wangborong@cdjrlc.com/

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-29 10:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-13  6:35 [PATCH] net: wireless: ti: no need to initialise statics to false Jason Wang
2021-11-29 10:44 ` wlcore: " Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).