]> git.hungrycats.org Git - linux/commitdiff
[ARM] Don't return a value from ptrace_set_bpt()
authorRussell King <rmk@flint.arm.linux.org.uk>
Sun, 29 Sep 2002 21:16:12 +0000 (22:16 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Sun, 29 Sep 2002 21:16:12 +0000 (22:16 +0100)
The return value from ptrace_set_bit() is never used.  This cset
makes it a void function.

arch/arm/kernel/ptrace.c
arch/arm/kernel/ptrace.h

index 9f325ea5dda694406381311ea01e622be86c5578..65a96d722b2950d4273c04b7dc8895ac232693af 100644 (file)
@@ -339,7 +339,7 @@ add_breakpoint(struct task_struct *child, struct debug_info *dbg, unsigned long
        return res;
 }
 
-int ptrace_set_bpt(struct task_struct *child)
+void ptrace_set_bpt(struct task_struct *child)
 {
        struct pt_regs *regs;
        unsigned long pc, insn;
@@ -350,7 +350,7 @@ int ptrace_set_bpt(struct task_struct *child)
 
        if (thumb_mode(regs)) {
                printk(KERN_WARNING "ptrace: can't handle thumb mode\n");
-               return -EINVAL;
+               return;
        }
 
        res = read_tsk_long(child, pc, &insn);
@@ -376,8 +376,6 @@ int ptrace_set_bpt(struct task_struct *child)
                if (!alt || predicate(insn) != PREDICATE_ALWAYS)
                        res = add_breakpoint(child, dbg, pc + 4);
        }
-
-       return res;
 }
 
 /*
index 9376434404d0cee6f3e1c20f86603a5c2515d6ae..48434fe2a90b9f9b6272764b8df36ce30d41d643 100644 (file)
@@ -8,7 +8,7 @@
  * published by the Free Software Foundation.
  */
 extern void __ptrace_cancel_bpt(struct task_struct *);
-extern int ptrace_set_bpt(struct task_struct *);
+extern void ptrace_set_bpt(struct task_struct *);
 extern void ptrace_break(struct task_struct *, struct pt_regs *);
 
 /*