[PATCH] uml: register handling formatting fixes
authorJeff Dike <jdike@addtoit.com>
Sat, 10 Feb 2007 09:44:26 +0000 (01:44 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:24 +0000 (10:51 -0800)
Formatting fixes in the register handling code.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/os-Linux/sys-i386/registers.c
arch/um/os-Linux/sys-x86_64/registers.c

index 7cd0369e02b3b82970727bec506038ecb3cfd00c..79cd93c8c5ed62d08ebe0d1d99461e4f98105f1c 100644 (file)
@@ -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)
index cb8e8a2632803c75d1c90db8b0b73cbbc86b6d07..a2d7e0c603f798efe99beb39da79b35f3ca9199e 100644 (file)
@@ -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)