Messages in this thread Patch in this message | | | Subject | [PATCH 3/4] OProfile: remove useless code | From | John Levon <> | Date | Thu, 12 Jun 2003 03:02:32 +0100 |
| |
Remove some useless code, from Philippe Elie.
diff -Naur -X dontdiff linux-cvs/drivers/oprofile/buffer_sync.c linux-fixes/drivers/oprofile/buffer_sync.c --- linux-cvs/drivers/oprofile/buffer_sync.c 2003-05-26 05:42:35.000000000 +0100 +++ linux-fixes/drivers/oprofile/buffer_sync.c 2003-06-12 02:05:19.000000000 +0100 @@ -236,8 +236,6 @@ 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 @@ *offset = (vma->vm_pgoff << PAGE_SHIFT) + addr - vma->vm_start; break; } -out: + return cookie; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |