aboutsummaryrefslogtreecommitdiffstats
path: root/arch/score/kernel/sys_score.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2009-06-27 14:46:35 +0200
committerArnd Bergmann <arnd@arndb.de>2009-06-27 15:16:16 +0200
commitc6067472252c1d6155c7c01c93e0d580342cdb29 (patch)
tree985a0fdf5342bc6e73245bb4553e64e404cd9e48 /arch/score/kernel/sys_score.c
parentscore: fix function prototypes (diff)
downloadlinux-dev-c6067472252c1d6155c7c01c93e0d580342cdb29.tar.xz
linux-dev-c6067472252c1d6155c7c01c93e0d580342cdb29.zip
score: cleanups: dead code, 0 as pointer, shadowed variables
A few smaller issues found by sparse, some code that was never used, two instances of '0' instead of 'NULL' and local variables shadowing another one. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/score/kernel/sys_score.c')
-rw-r--r--arch/score/kernel/sys_score.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/arch/score/kernel/sys_score.c b/arch/score/kernel/sys_score.c
index 5b3cc4e685ae..61aff8a93443 100644
--- a/arch/score/kernel/sys_score.c
+++ b/arch/score/kernel/sys_score.c
@@ -31,10 +31,7 @@
#include <linux/syscalls.h>
#include <asm/syscalls.h>
-unsigned long shm_align_mask = PAGE_SIZE - 1;
-EXPORT_SYMBOL(shm_align_mask);
-
-asmlinkage unsigned
+asmlinkage long
sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot,
unsigned long flags, unsigned long fd, unsigned long pgoff)
{
@@ -107,15 +104,6 @@ score_execve(struct pt_regs *regs)
}
/*
- * If we ever come here the user sp is bad. Zap the process right away.
- * Due to the bad stack signaling wouldn't work.
- */
-void bad_stack(void)
-{
- do_exit(SIGSEGV);
-}
-
-/*
* Do a system call from kernel instead of calling sys_execve so we
* end up with proper pt_regs.
*/