From: Alexey Dobriyan Date: Thu, 16 Nov 2006 09:19:28 +0000 (-0800) Subject: [PATCH] Don't give bad kprobes example aka ") < 0))" typo X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=565762f3fae23ec4db26607cf4726de7b5075b3b;p=mv-sheeva.git [PATCH] Don't give bad kprobes example aka ") < 0))" typo Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/Documentation/kprobes.txt b/Documentation/kprobes.txt index ba26201d502..d71fafffce9 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;