diff options
Diffstat (limited to 'net/tipc/user_reg.c')
-rw-r--r-- | net/tipc/user_reg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tipc/user_reg.c b/net/tipc/user_reg.c index 106200d76587..3f3f933976e9 100644 --- a/net/tipc/user_reg.c +++ b/net/tipc/user_reg.c | |||
@@ -65,7 +65,7 @@ struct tipc_user { | |||
65 | #define MAX_USERID 64 | 65 | #define MAX_USERID 64 |
66 | #define USER_LIST_SIZE ((MAX_USERID + 1) * sizeof(struct tipc_user)) | 66 | #define USER_LIST_SIZE ((MAX_USERID + 1) * sizeof(struct tipc_user)) |
67 | 67 | ||
68 | static struct tipc_user *users = 0; | 68 | static struct tipc_user *users = NULL; |
69 | static u32 next_free_user = MAX_USERID + 1; | 69 | static u32 next_free_user = MAX_USERID + 1; |
70 | static spinlock_t reg_lock = SPIN_LOCK_UNLOCKED; | 70 | static spinlock_t reg_lock = SPIN_LOCK_UNLOCKED; |
71 | 71 | ||
@@ -149,7 +149,7 @@ void tipc_reg_stop(void) | |||
149 | reg_callback(&users[id]); | 149 | reg_callback(&users[id]); |
150 | } | 150 | } |
151 | kfree(users); | 151 | kfree(users); |
152 | users = 0; | 152 | users = NULL; |
153 | } | 153 | } |
154 | 154 | ||
155 | /** | 155 | /** |