]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86, signals: remove duplicated register setup code in ia32 signal delivery
authorMikael Pettersson <mikpe@it.uu.se>
Mon, 27 Oct 2008 08:30:57 +0000 (09:30 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 27 Oct 2008 09:44:22 +0000 (10:44 +0100)
Impact: cleanup, no functionality changed

ia32_setup_rt_frame() has a duplicated code block labelled
"Make -mregparm=3 work" for setting up the register parameters
to the user-mode signal handler.

This is harmless but ugly. Remove the redundant assignments.

Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/ia32/ia32_signal.c

index 4bc02b23674b5dfaaf91e813fb2be320dc57cd23..e82ebd6522637f3cdca85c3ddb9dbca352026c06 100644 (file)
@@ -572,11 +572,6 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
        regs->dx = (unsigned long) &frame->info;
        regs->cx = (unsigned long) &frame->uc;
 
-       /* Make -mregparm=3 work */
-       regs->ax = sig;
-       regs->dx = (unsigned long) &frame->info;
-       regs->cx = (unsigned long) &frame->uc;
-
        loadsegment(ds, __USER32_DS);
        loadsegment(es, __USER32_DS);