summaryrefslogtreecommitdiff
path: root/fs/binfmt_elf_fdpic.c
diff options
context:
space:
mode:
authorChristoph Egger <siccegge@cs.fau.de>2010-04-26 15:56:36 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2010-04-27 09:01:26 -0700
commit16a5b3c4143fc7f6cbe0ef9fd4e9a58376f91506 (patch)
tree3ddc0a8a20a99c6abdf3698917ff636bd41cdea9 /fs/binfmt_elf_fdpic.c
parentbc113f151a73cb2195c2fb40d7d70acf8e2f9208 (diff)
downloadlinux-3.10-16a5b3c4143fc7f6cbe0ef9fd4e9a58376f91506.tar.gz
linux-3.10-16a5b3c4143fc7f6cbe0ef9fd4e9a58376f91506.tar.bz2
linux-3.10-16a5b3c4143fc7f6cbe0ef9fd4e9a58376f91506.zip
Remove redundant check for CONFIG_MMU
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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/binfmt_elf_fdpic.c')
-rw-r--r--fs/binfmt_elf_fdpic.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c
index 7ab23e006e4..2c5f9a0e5d7 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++;