[PATCH] NET: IPV4: fix error "do not initialise globals to 0"

Subsystems: networking [general], networking [labeled] (netlabel, labeled ipsec, secmark), the rest

STALE1780d

2 messages, 2 authors, 2021-09-19 · open the first message on its own page

[PATCH] NET: IPV4: fix error "do not initialise globals to 0"

From: wangzhitong <hidden>
Date: 2021-09-18 09:39:54

    this patch fixes below Errors reported by checkpatch
    ERROR: do not initialise globals to 0
    +int cipso_v4_rbm_optfmt = 0;

Signed-off-by: wangzhitong <redacted>
---
 net/ipv4/cipso_ipv4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv4/cipso_ipv4.c b/net/ipv4/cipso_ipv4.c
index a23094b050f8..6adeb3942c96 100644
--- a/net/ipv4/cipso_ipv4.c
+++ b/net/ipv4/cipso_ipv4.c
@@ -73,7 +73,7 @@ struct cipso_v4_map_cache_entry {
 static struct cipso_v4_map_cache_bkt *cipso_v4_cache;
 
 /* Restricted bitmap (tag #1) flags */
-int cipso_v4_rbm_optfmt = 0;
+int cipso_v4_rbm_optfmt;
 int cipso_v4_rbm_strictvalid = 1;
 
 /*
-- 
2.20.1


Re: [PATCH] NET: IPV4: fix error "do not initialise globals to 0"

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-09-19 11:50:16

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Sat, 18 Sep 2021 17:39:10 +0800 you wrote:
this patch fixes below Errors reported by checkpatch
    ERROR: do not initialise globals to 0
    +int cipso_v4_rbm_optfmt = 0;

Signed-off-by: wangzhitong <redacted>
---
 net/ipv4/cipso_ipv4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
  - NET: IPV4: fix error "do not initialise globals to 0"
    https://git.kernel.org/netdev/net-next/c/db9c8e2b1e24

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