mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
ptrace: some checkpatch fixes
This fixes all the checkpatch --file complaints about kernel/ptrace.c and also removes an unused #include. I've verified that there are no changes to the compiled code on x86_64. Signed-off-by: Roland McGrath <roland@redhat.com> [ Removed the parts that just split a line - Linus ] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
4c967291fc
commit
3a70970353
1 changed files with 7 additions and 9 deletions
|
@ -21,9 +21,7 @@
|
|||
#include <linux/audit.h>
|
||||
#include <linux/pid_namespace.h>
|
||||
#include <linux/syscalls.h>
|
||||
|
||||
#include <asm/pgtable.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/uaccess.h>
|
||||
|
||||
|
||||
/*
|
||||
|
@ -173,7 +171,7 @@ bool ptrace_may_access(struct task_struct *task, unsigned int mode)
|
|||
task_lock(task);
|
||||
err = __ptrace_may_access(task, mode);
|
||||
task_unlock(task);
|
||||
return (!err ? true : false);
|
||||
return !err;
|
||||
}
|
||||
|
||||
int ptrace_attach(struct task_struct *task)
|
||||
|
@ -496,9 +494,9 @@ static int ptrace_resume(struct task_struct *child, long request, long data)
|
|||
if (unlikely(!arch_has_single_step()))
|
||||
return -EIO;
|
||||
user_enable_single_step(child);
|
||||
}
|
||||
else
|
||||
} else {
|
||||
user_disable_single_step(child);
|
||||
}
|
||||
|
||||
child->exit_code = data;
|
||||
wake_up_process(child);
|
||||
|
|
Loading…
Reference in a new issue