Commit 6c59e2f5 authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds

[PATCH] uml: register handling formatting fixes

Formatting fixes in the register handling code.
Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c538b391
......@@ -34,27 +34,27 @@ void init_thread_registers(union uml_pt_regs *to)
int save_fp_registers(int pid, unsigned long *fp_regs)
{
if(ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0)
return(-errno);
return(0);
return -errno;
return 0;
}
int restore_fp_registers(int pid, unsigned long *fp_regs)
{
if(ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0)
return(-errno);
return(0);
return -errno;
return 0;
}
static int move_registers(int pid, int int_op, union uml_pt_regs *regs,
int fp_op, unsigned long *fp_regs)
{
if(ptrace(int_op, pid, 0, regs->skas.regs) < 0)
return(-errno);
return -errno;
if(ptrace(fp_op, pid, 0, fp_regs) < 0)
return(-errno);
return -errno;
return(0);
return 0;
}
void save_registers(int pid, union uml_pt_regs *regs)
......
......@@ -27,12 +27,12 @@ static int move_registers(int pid, int int_op, int fp_op,
union uml_pt_regs *regs)
{
if(ptrace(int_op, pid, 0, regs->skas.regs) < 0)
return(-errno);
return -errno;
if(ptrace(fp_op, pid, 0, regs->skas.fp) < 0)
return(-errno);
return -errno;
return(0);
return 0;
}
void save_registers(int pid, union uml_pt_regs *regs)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment