Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netlabel: do not initialise statics to NULL

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>

authored by

Wei Tang and committed by
David S. Miller
8303394d 795f3512

+2 -2
+2 -2
net/netlabel/netlabel_domainhash.c
··· 55 55 static DEFINE_SPINLOCK(netlbl_domhsh_lock); 56 56 #define netlbl_domhsh_rcu_deref(p) \ 57 57 rcu_dereference_check(p, lockdep_is_held(&netlbl_domhsh_lock)) 58 - static struct netlbl_domhsh_tbl *netlbl_domhsh = NULL; 59 - static struct netlbl_dom_map *netlbl_domhsh_def = NULL; 58 + static struct netlbl_domhsh_tbl *netlbl_domhsh; 59 + static struct netlbl_dom_map *netlbl_domhsh_def; 60 60 61 61 /* 62 62 * Domain Hash Table Helper Functions