diff options
Diffstat (limited to 'kernel/futex.c')
-rw-r--r-- | kernel/futex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/futex.c b/kernel/futex.c index 06968cd79200..e43945e995f5 100644 --- a/kernel/futex.c +++ b/kernel/futex.c | |||
@@ -281,7 +281,7 @@ static int get_futex_key(u32 __user *uaddr, struct rw_semaphore *fshared, | |||
281 | */ | 281 | */ |
282 | static void get_futex_key_refs(union futex_key *key) | 282 | static void get_futex_key_refs(union futex_key *key) |
283 | { | 283 | { |
284 | if (key->both.ptr == 0) | 284 | if (key->both.ptr == NULL) |
285 | return; | 285 | return; |
286 | switch (key->both.offset & (FUT_OFF_INODE|FUT_OFF_MMSHARED)) { | 286 | switch (key->both.offset & (FUT_OFF_INODE|FUT_OFF_MMSHARED)) { |
287 | case FUT_OFF_INODE: | 287 | case FUT_OFF_INODE: |
@@ -2158,7 +2158,7 @@ static struct file_system_type futex_fs_type = { | |||
2158 | .kill_sb = kill_anon_super, | 2158 | .kill_sb = kill_anon_super, |
2159 | }; | 2159 | }; |
2160 | 2160 | ||
2161 | static int __init init(void) | 2161 | static int __init futex_init(void) |
2162 | { | 2162 | { |
2163 | u32 curval; | 2163 | u32 curval; |
2164 | int i; | 2164 | int i; |
@@ -2194,4 +2194,4 @@ static int __init init(void) | |||
2194 | 2194 | ||
2195 | return 0; | 2195 | return 0; |
2196 | } | 2196 | } |
2197 | __initcall(init); | 2197 | __initcall(futex_init); |