LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 6/7] UML - register handling formatting fixes
@ 2007-02-07 19:47 Jeff Dike
  0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2007-02-07 19:47 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, user-mode-linux-devel

Formatting fixes in the register handling code.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
--
 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)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-07 19:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-07 19:47 [PATCH 6/7] UML - register handling formatting fixes Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).