diff options
author | Nicolas Pitre <nico@cam.org> | 2005-11-09 15:09:31 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-11-09 15:09:31 +0100 |
commit | c906107bb72b7bd5ecfc98cc807bdb8f34d17501 (patch) | |
tree | 8cf020469248450d456ed06d044a40dedfdfc11b /arch | |
parent | [ARM] 3138/1: SMDK2440 - fix map_desc initialisation (and ISA memory space) (diff) | |
download | linux-c906107bb72b7bd5ecfc98cc807bdb8f34d17501.tar.xz linux-c906107bb72b7bd5ecfc98cc807bdb8f34d17501.zip |
[ARM] 3100/1: simplify a pointer computation
Patch from Nicolas Pitre
Looks clearer this way.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/kernel/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index ba298277becd..07fb744f8a68 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c @@ -355,7 +355,7 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long stack_start, struct thread_info *thread = p->thread_info; struct pt_regs *childregs; - childregs = ((struct pt_regs *)((unsigned long)thread + THREAD_START_SP)) - 1; + childregs = (void *)thread + THREAD_START_SP - sizeof(*regs); *childregs = *regs; childregs->ARM_r0 = 0; childregs->ARM_sp = stack_start; |