diff options
| author | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-04-24 23:33:25 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-04-24 23:33:25 -0700 |
| commit | 5694e35c2ae67ceb1ca930829f3073469978420a (patch) | |
| tree | c66037cf110402b43169aea55891f210b6959337 /kernel | |
| parent | 898683e9fabbbc9c9e837551f996423853fb26ba (diff) | |
Clean up compiler warnings
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/exit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index e3fdd078f449..f451ea0a8440 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -37,7 +37,7 @@ static inline void __unhash_process(struct task_struct *p) list_del(&p->thread_group); p->pid = 0; proc_dentry = p->proc_dentry; - if (unlikely(proc_dentry)) { + if (unlikely(proc_dentry != NULL)) { spin_lock(&dcache_lock); if (!list_empty(&proc_dentry->d_hash)) { dget_locked(proc_dentry); @@ -47,7 +47,7 @@ static inline void __unhash_process(struct task_struct *p) spin_unlock(&dcache_lock); } write_unlock_irq(&tasklist_lock); - if (unlikely(proc_dentry)) { + if (unlikely(proc_dentry != NULL)) { shrink_dcache_parent(proc_dentry); dput(proc_dentry); } |
