summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-01-09 22:09:16 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-09 22:02:51 +0100
commit682e852e2638ed0aff84aa51181c9e5d2f939562 (patch)
treee1a5221fe0c98d743fbceec2d0932f3556aecf93 /Documentation
parent[PATCH] Fix sg_page_malloc() memset (diff)
downloadlinux-682e852e2638ed0aff84aa51181c9e5d2f939562.tar.xz
linux-682e852e2638ed0aff84aa51181c9e5d2f939562.zip
[PATCH] Fix more "if ((err = foo() < 0))" typos
Another reason to use: ret = foo(); if (ret < 0) goto out; Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/kprobes.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/kprobes.txt b/Documentation/kprobes.txt
index 0541fe1de704..0ea5a0c6e827 100644
--- a/Documentation/kprobes.txt
+++ b/Documentation/kprobes.txt
@@ -411,7 +411,8 @@ int init_module(void)
printk("Couldn't find %s to plant kprobe\n", "do_fork");
return -1;
}
- if ((ret = register_kprobe(&kp) < 0)) {
+ ret = register_kprobe(&kp);
+ if (ret < 0) {
printk("register_kprobe failed, returned %d\n", ret);
return -1;
}