* [PATCH] Remove redundant check for CONFIG_MMU
@ 2010-04-26 14:56 David Howells
0 siblings, 0 replies; only message in thread
From: David Howells @ 2010-04-26 14:56 UTC (permalink / raw)
To: torvalds, akpm
Cc: viro, d.hatayama, roland, vapier, linux-fsdevel, linux-kernel,
vamos, Christoph Egger, David Howells
From: Christoph Egger <siccegge@cs.fau.de>
The checks for CONFIG_MMU at this location are duplicated as all the code is
located inside a #ifndef CONFIG_MMU block. So the first conditional block will
always be included while the second never will.
Signed-off-by: Christoph Egger <siccegge@stud.informatik.uni-erlangen.de>
Signed-off-by: David Howells <dhowells@redhat.com>
---
fs/binfmt_elf_fdpic.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c
index 7ab23e0..2c5f9a0 100644
--- a/fs/binfmt_elf_fdpic.c
+++ b/fs/binfmt_elf_fdpic.c
@@ -1005,15 +1005,8 @@ static int elf_fdpic_map_file_constdisp_on_uclinux(
}
} else if (!mm->start_data) {
mm->start_data = seg->addr;
-#ifndef CONFIG_MMU
mm->end_data = seg->addr + phdr->p_memsz;
-#endif
}
-
-#ifdef CONFIG_MMU
- if (seg->addr + phdr->p_memsz > mm->end_data)
- mm->end_data = seg->addr + phdr->p_memsz;
-#endif
}
seg++;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-04-26 14:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-26 14:56 [PATCH] Remove redundant check for CONFIG_MMU David Howells
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®