summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@openvz.org>2006-11-16 01:19:28 -0800
committerLinus Torvalds <torvalds@woody.osdl.org>2006-11-16 11:43:38 -0800
commit565762f3fae23ec4db26607cf4726de7b5075b3b (patch)
treee65a05abe3ab00438e21d0b4572823767da60cf3
parent64aaa4f8b7e676ccd3f6448df6867097b873b0a6 (diff)
downloadlinux-stable-565762f3fae23ec4db26607cf4726de7b5075b3b.tar.gz
linux-stable-565762f3fae23ec4db26607cf4726de7b5075b3b.tar.bz2
linux-stable-565762f3fae23ec4db26607cf4726de7b5075b3b.zip
[PATCH] Don't give bad kprobes example aka ") < 0))" typo
Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--Documentation/kprobes.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/kprobes.txt b/Documentation/kprobes.txt
index ba26201d5023..d71fafffce90 100644
--- a/Documentation/kprobes.txt
+++ b/Documentation/kprobes.txt
@@ -442,9 +442,10 @@ static int __init kprobe_init(void)
kp.fault_handler = handler_fault;
kp.symbol_name = "do_fork";
- if ((ret = register_kprobe(&kp) < 0)) {
+ ret = register_kprobe(&kp);
+ if (ret < 0) {
printk("register_kprobe failed, returned %d\n", ret);
- return -1;
+ return ret;
}
printk("kprobe registered\n");
return 0;