Commit b3319f50 authored by Roman Zippel's avatar Roman Zippel Committed by Linus Torvalds

[PATCH] m68k: indent sys_ptrace

This reformats and properly indents sys_ptrace (only whitespace changes).
Signed-off-by: default avatarRoman Zippel <zippel@linux-m68k.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c3c433e4
......@@ -95,7 +95,7 @@ static inline int put_reg(struct task_struct *task, int regno,
if (regno == PT_USP)
addr = &task->thread.usp;
else if (regno < sizeof(regoff)/sizeof(regoff[0]))
addr = (unsigned long *) (task->thread.esp0 + regoff[regno]);
addr = (unsigned long *)(task->thread.esp0 + regoff[regno]);
else
return -1;
*addr = data;
......@@ -166,7 +166,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
ret = -EIO;
if (copied != sizeof(tmp))
break;
ret = put_user(tmp,(unsigned long *) data);
ret = put_user(tmp, (unsigned long *)data);
break;
}
......@@ -198,7 +198,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
#endif
} else
break;
ret = put_user(tmp,(unsigned long *) data);
ret = put_user(tmp, (unsigned long *)data);
break;
}
......@@ -230,8 +230,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
ret = 0;
break;
}
if (addr >= 21 && addr < 48)
{
if (addr >= 21 && addr < 48) {
#ifdef CONFIG_M68KFPU_EMU
/* Convert long double format
* into internal fpu reg representation
......@@ -269,7 +268,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
break;
}
/*
/*
* make the child exit. Best I can do is send it a sigkill.
* perhaps it should be put in the status that it wants to
* exit.
......@@ -318,7 +317,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
tmp = get_reg(child, i);
if (i == PT_SR)
tmp >>= 16;
if (put_user(tmp, (unsigned long *) data)) {
if (put_user(tmp, (unsigned long *)data)) {
ret = -EFAULT;
break;
}
......@@ -332,7 +331,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
int i;
unsigned long tmp;
for (i = 0; i < 19; i++) {
if (get_user(tmp, (unsigned long *) data)) {
if (get_user(tmp, (unsigned long *)data)) {
ret = -EFAULT;
break;
}
......
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