Formatting fixes in the register handling code.
Signed-off-by: Jeff Dike <[email protected]>
--
arch/um/os-Linux/sys-i386/registers.c | 14 +++++++-------
arch/um/os-Linux/sys-x86_64/registers.c | 6 +++---
2 files changed, 10 insertions(+), 10 deletions(-)
Index: linux-2.6.18-mm/arch/um/os-Linux/sys-i386/registers.c
===================================================================
--- linux-2.6.18-mm.orig/arch/um/os-Linux/sys-i386/registers.c 2007-01-09 15:17:55.000000000 -0500
+++ linux-2.6.18-mm/arch/um/os-Linux/sys-i386/registers.c 2007-01-09 15:45:22.000000000 -0500
@@ -34,27 +34,27 @@ void init_thread_registers(union uml_pt_
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)
Index: linux-2.6.18-mm/arch/um/os-Linux/sys-x86_64/registers.c
===================================================================
--- linux-2.6.18-mm.orig/arch/um/os-Linux/sys-x86_64/registers.c 2007-01-09 15:17:53.000000000 -0500
+++ linux-2.6.18-mm/arch/um/os-Linux/sys-x86_64/registers.c 2007-01-09 15:45:22.000000000 -0500
@@ -27,12 +27,12 @@ static int move_registers(int pid, int i
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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]