Skip to contentSkip to conversation

Remove unused code from mm/tiny-shmem.c

PATCH In review Balbir Singh 2 participants 2 messages Nov 2, 2007 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove unused code from mm/tiny-shmem.c

This code in mm/tiny-shmem.c is under #if 0, do we really need it? This patch removes it.

---

 mm/tiny-shmem.c |   12 ------------
 1 file changed, 12 deletions(-)
mm/tiny-shmem.c renamed from mm/tiny-shmem.c~remove-unused-code +0 -12
diff -puN mm/tiny-shmem.c~remove-unused-code mm/tiny-shmem.c
@@ -121,18 +121,6 @@ int shmem_unuse(swp_entry_t entry, struc
 	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,

_

Signature · 4 lines
	Warm Regards,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL
Acked-by on v1 1/1
#1 lore raw

[resent due to damaged header]

Quoted 4 lines · Balbir Singh

This code in mm/tiny-shmem.c is under #if 0, do we really need it? This patch removes it.

Adrian added the #ifdefs in March, not sure why he didn't kill it outright.

Quoted 25 lines
 mm/tiny-shmem.c |   12 ------------
 1 file changed, 12 deletions(-)

diff -puN mm/tiny-shmem.c~remove-unused-code mm/tiny-shmem.c

mm/tiny-shmem.c renamed from mm/tiny-shmem.c~remove-unused-code +0 -12
@@ -121,18 +121,6 @@ int shmem_unuse(swp_entry_t entry, struc
 	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,
Signature · 7 lines
Mathematics is the supreme nostalgia of our time.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>