Commit 5694e35c authored by Linus Torvalds's avatar Linus Torvalds

Clean up compiler warnings

parent 898683e9
...@@ -37,7 +37,7 @@ static inline void __unhash_process(struct task_struct *p) ...@@ -37,7 +37,7 @@ static inline void __unhash_process(struct task_struct *p)
list_del(&p->thread_group); list_del(&p->thread_group);
p->pid = 0; p->pid = 0;
proc_dentry = p->proc_dentry; proc_dentry = p->proc_dentry;
if (unlikely(proc_dentry)) { if (unlikely(proc_dentry != NULL)) {
spin_lock(&dcache_lock); spin_lock(&dcache_lock);
if (!list_empty(&proc_dentry->d_hash)) { if (!list_empty(&proc_dentry->d_hash)) {
dget_locked(proc_dentry); dget_locked(proc_dentry);
...@@ -47,7 +47,7 @@ static inline void __unhash_process(struct task_struct *p) ...@@ -47,7 +47,7 @@ static inline void __unhash_process(struct task_struct *p)
spin_unlock(&dcache_lock); spin_unlock(&dcache_lock);
} }
write_unlock_irq(&tasklist_lock); write_unlock_irq(&tasklist_lock);
if (unlikely(proc_dentry)) { if (unlikely(proc_dentry != NULL)) {
shrink_dcache_parent(proc_dentry); shrink_dcache_parent(proc_dentry);
dput(proc_dentry); dput(proc_dentry);
} }
......
...@@ -103,7 +103,6 @@ static int move_one_page(struct vm_area_struct *vma, unsigned long old_addr, uns ...@@ -103,7 +103,6 @@ static int move_one_page(struct vm_area_struct *vma, unsigned long old_addr, uns
static int move_page_tables(struct vm_area_struct *vma, static int move_page_tables(struct vm_area_struct *vma,
unsigned long new_addr, unsigned long old_addr, unsigned long len) unsigned long new_addr, unsigned long old_addr, unsigned long len)
{ {
struct mm_struct *mm = vma->vm_mm;
unsigned long offset = len; unsigned long offset = len;
flush_cache_range(vma, old_addr, old_addr + len); flush_cache_range(vma, old_addr, old_addr + len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment