netlabel: do not initialise statics to NULL
authorWei Tang <tangwei@cmss.chinamobile.com>
Mon, 7 Mar 2016 06:29:53 +0000 (14:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Mar 2016 16:08:26 +0000 (11:08 -0500)
This patch fixes the checkpatch.pl error to netlabel_domainhash.c:

ERROR: do not initialise statics to NULL

Signed-off-by: Wei Tang <tangwei@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlabel/netlabel_domainhash.c

index f0cb92f3ddafa47063f82d54232e27308ea539fa..ada67422234bc41ba73f23696607903d800d87e3 100644 (file)
@@ -55,8 +55,8 @@ struct netlbl_domhsh_tbl {
 static DEFINE_SPINLOCK(netlbl_domhsh_lock);
 #define netlbl_domhsh_rcu_deref(p) \
        rcu_dereference_check(p, lockdep_is_held(&netlbl_domhsh_lock))
-static struct netlbl_domhsh_tbl *netlbl_domhsh = NULL;
-static struct netlbl_dom_map *netlbl_domhsh_def = NULL;
+static struct netlbl_domhsh_tbl *netlbl_domhsh;
+static struct netlbl_dom_map *netlbl_domhsh_def;
 
 /*
  * Domain Hash Table Helper Functions