Commit b043632b authored by John Levon's avatar John Levon Committed by Linus Torvalds

[PATCH] OProfile: remove useless code

Remove some useless code, from Philippe Elie.
parent 6856f60e
......@@ -236,8 +236,6 @@ static unsigned long lookup_dcookie(struct mm_struct * mm, unsigned long addr, o
struct vm_area_struct * vma;
for (vma = find_vma(mm, addr); vma; vma = vma->vm_next) {
if (!vma)
goto out;
if (!vma->vm_file)
continue;
......@@ -250,7 +248,7 @@ static unsigned long lookup_dcookie(struct mm_struct * mm, unsigned long addr, o
*offset = (vma->vm_pgoff << PAGE_SHIFT) + addr - vma->vm_start;
break;
}
out:
return cookie;
}
......
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