diff options
author | Hugh Dickins <hugh@veritas.com> | 2006-12-06 20:33:09 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 08:39:23 -0800 |
commit | 2d4d862f729f0cb1ad8027203aceff49dc9f63fa (patch) | |
tree | e081c175e65efee2e0bf239a215cceeeb8b8a26b | |
parent | ce421c799b5bde77aa60776d6fb61036ae0aea11 (diff) | |
download | linux-2d4d862f729f0cb1ad8027203aceff49dc9f63fa.tar.gz linux-2d4d862f729f0cb1ad8027203aceff49dc9f63fa.tar.bz2 linux-2d4d862f729f0cb1ad8027203aceff49dc9f63fa.zip |
[PATCH] kill install_file_pte's pte_val
David Binderman and his Intel C compiler rightly observe that
install_file_pte no longer has any use for its pte_val.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: d binderman <dcb314@hotmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | mm/fremap.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/fremap.c b/mm/fremap.c index 7a9d0f5d246d..b77a002c3352 100644 --- a/mm/fremap.c +++ b/mm/fremap.c @@ -101,7 +101,6 @@ int install_file_pte(struct mm_struct *mm, struct vm_area_struct *vma, { int err = -ENOMEM; pte_t *pte; - pte_t pte_val; spinlock_t *ptl; pte = get_locked_pte(mm, addr, &ptl); @@ -114,7 +113,6 @@ int install_file_pte(struct mm_struct *mm, struct vm_area_struct *vma, } set_pte_at(mm, addr, pte, pgoff_to_pte(pgoff)); - pte_val = *pte; /* * We don't need to run update_mmu_cache() here because the "file pte" * being installed by install_file_pte() is not a real pte - it's a |