* [PATCH] net:Remove initialization of static variables to 0
@ 2021-12-27 8:22 Wen Zhiwei
2021-12-27 15:00 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Wen Zhiwei @ 2021-12-27 8:22 UTC (permalink / raw)
To: davem, kuba, wenzhiwei; +Cc: netdev, linux-kernel
Delete the initialization of three static variables
because it is meaningless.
Signed-off-by: Wen Zhiwei <wenzhiwei@kylinos.cn>
---
drivers/net/fddi/skfp/hwmtm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/fddi/skfp/hwmtm.c b/drivers/net/fddi/skfp/hwmtm.c
index 107039056511..145767d98445 100644
--- a/drivers/net/fddi/skfp/hwmtm.c
+++ b/drivers/net/fddi/skfp/hwmtm.c
@@ -38,10 +38,10 @@
-------------------------------------------------------------
*/
#ifdef COMMON_MB_POOL
-static SMbuf *mb_start = 0 ;
-static SMbuf *mb_free = 0 ;
+static SMbuf *mb_start;
+static SMbuf *mb_free;
static int mb_init = FALSE ;
-static int call_count = 0 ;
+static int call_count;
#endif
/*
--
2.30.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net:Remove initialization of static variables to 0
2021-12-27 8:22 [PATCH] net:Remove initialization of static variables to 0 Wen Zhiwei
@ 2021-12-27 15:00 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-12-27 15:00 UTC (permalink / raw)
To: Wen Zhiwei; +Cc: davem, kuba, netdev, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:
On Mon, 27 Dec 2021 16:22:01 +0800 you wrote:
> Delete the initialization of three static variables
> because it is meaningless.
>
> Signed-off-by: Wen Zhiwei <wenzhiwei@kylinos.cn>
> ---
> drivers/net/fddi/skfp/hwmtm.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Here is the summary with links:
- net:Remove initialization of static variables to 0
https://git.kernel.org/netdev/net-next/c/b4aadd207322
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-27 15:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-27 8:22 [PATCH] net:Remove initialization of static variables to 0 Wen Zhiwei
2021-12-27 15:00 ` patchwork-bot+netdevbpf
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).