[PATCH] net:Remove initialization of static variables to 0

Subsystems: networking drivers, the rest

STALE1741d

2 messages, 2 authors, 2021-12-27 · open the first message on its own page

[PATCH] net:Remove initialization of static variables to 0

From: Wen Zhiwei <hidden>
Date: 2021-12-27 08:22:20

Delete the initialization of three static variables
because it is meaningless.

Signed-off-by: Wen Zhiwei <redacted>
---
 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

Re: [PATCH] net:Remove initialization of static variables to 0

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-12-27 15:00:18

Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller [off-list ref]:

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 <redacted>
---
 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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help