2014-11-04 19:19:35

by Fabian Frédérick

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

Also add blank line after structure declarations

Signed-off-by: Fabian Frederick <[email protected]>
---
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


2014-11-04 20:10:53

by David Miller

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

From: Fabian Frederick <[email protected]>
Date: Tue, 4 Nov 2014 20:19:19 +0100

> Also add blank line after structure declarations
>
> Signed-off-by: Fabian Frederick <[email protected]>

Applied.