[PATCH 1/1 net-next] cipso: remove NULL assignment on static

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

STALE4327d

2 messages, 2 authors, 2014-11-04 · open the first message on its own page

[PATCH 1/1 net-next] cipso: remove NULL assignment on static

From: Fabian Frederick <hidden>
Date: 2014-11-04 19:19:35

Also add blank line after structure declarations

Signed-off-by: Fabian Frederick <redacted>
---
 net/ipv4/cipso_ipv4.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/net/ipv4/cipso_ipv4.c b/net/ipv4/cipso_ipv4.c
index 4715f25..dd3746a 100644
--- a/net/ipv4/cipso_ipv4.c
+++ b/net/ipv4/cipso_ipv4.c
@@ -72,6 +72,7 @@ struct cipso_v4_map_cache_bkt {
 	u32 size;
 	struct list_head list;
 };
+
 struct cipso_v4_map_cache_entry {
 	u32 hash;
 	unsigned char *key;
@@ -82,7 +83,8 @@ struct cipso_v4_map_cache_entry {
 	u32 activity;
 	struct list_head list;
 };
-static struct cipso_v4_map_cache_bkt *cipso_v4_cache = NULL;
+
+static struct cipso_v4_map_cache_bkt *cipso_v4_cache;
 
 /* Restricted bitmap (tag #1) flags */
 int cipso_v4_rbm_optfmt = 0;
-- 
1.9.3

Re: [PATCH 1/1 net-next] cipso: remove NULL assignment on static

From: David Miller <davem@davemloft.net>
Date: 2014-11-04 20:10:53

From: Fabian Frederick <redacted>
Date: Tue,  4 Nov 2014 20:19:19 +0100
Also add blank line after structure declarations

Signed-off-by: Fabian Frederick <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help