Skip to content

Commit 795f351

Browse files
Wei Tangdavem330
authored andcommitted
netlink: do not initialise statics to 0 or NULL
This patch fixes the checkpatch.pl error to netlabel_unlabeled.c: ERROR: do not initialise statics to 0 or NULL Signed-off-by: Wei Tang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e74a386 commit 795f351

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

net/netlabel/netlabel_unlabeled.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ struct netlbl_unlhsh_walk_arg {
116116
static DEFINE_SPINLOCK(netlbl_unlhsh_lock);
117117
#define netlbl_unlhsh_rcu_deref(p) \
118118
rcu_dereference_check(p, lockdep_is_held(&netlbl_unlhsh_lock))
119-
static struct netlbl_unlhsh_tbl *netlbl_unlhsh = NULL;
120-
static struct netlbl_unlhsh_iface *netlbl_unlhsh_def = NULL;
119+
static struct netlbl_unlhsh_tbl *netlbl_unlhsh;
120+
static struct netlbl_unlhsh_iface *netlbl_unlhsh_def;
121121

122122
/* Accept unlabeled packets flag */
123-
static u8 netlabel_unlabel_acceptflg = 0;
123+
static u8 netlabel_unlabel_acceptflg;
124124

125125
/* NetLabel Generic NETLINK unlabeled family */
126126
static struct genl_family netlbl_unlabel_gnl_family = {

0 commit comments

Comments
 (0)