diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
commit | 1ebbe2b20091d306453a5cf480a87e6cd28ae76f (patch) | |
tree | f5cd7a0fa69b8b1938cb5a0faed2e7b0628072a5 /net/tipc/user_reg.c | |
parent | ac58c9059da8886b5e8cde012a80266b18ca146e (diff) | |
parent | 674a396c6d2ba0341ebdd7c1c9950f32f018e2dd (diff) |
Merge branch 'linus'
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 | /** |