]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/events/uprobes.c
uprobes: Kill set_swbp()->is_swbp_at_addr()
[karo-tx-linux.git] / kernel / events / uprobes.c
index 8d182bdecc2e20f6d514b5dc1262e51fed92c9ab..a4453d1c8199b3eca5326ded31c47d195910ca21 100644 (file)
@@ -321,17 +321,6 @@ out:
  */
 int __weak set_swbp(struct arch_uprobe *auprobe, struct mm_struct *mm, unsigned long vaddr)
 {
-       int result;
-       /*
-        * See the comment near uprobes_hash().
-        */
-       result = is_swbp_at_addr(mm, vaddr);
-       if (result == 1)
-               return 0;
-
-       if (result)
-               return result;
-
        return write_opcode(auprobe, mm, vaddr, UPROBE_SWBP_INSN);
 }