Skip to content

Commit

Permalink
Remove unused code from mm/tiny-shmem.c
Browse files Browse the repository at this point in the history
This code in mm/tiny-shmem.c is under #if 0 - remove it.

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Acked-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Balbir Singh authored and Linus Torvalds committed Feb 5, 2008
1 parent f61eaf9 commit 625d957
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions mm/tiny-shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,6 @@ int shmem_unuse(swp_entry_t entry, struct page *page)
return 0;
}

#if 0
int shmem_mmap(struct file *file, struct vm_area_struct *vma)
{
file_accessed(file);
#ifndef CONFIG_MMU
return ramfs_nommu_mmap(file, vma);
#else
return 0;
#endif
}
#endif /* 0 */

#ifndef CONFIG_MMU
unsigned long shmem_get_unmapped_area(struct file *file,
unsigned long addr,
Expand Down

0 comments on commit 625d957

Please sign in to comment.