--- zzzz-none-000/linux-2.6.19.2/Documentation/kprobes.txt 2007-01-10 19:10:37.000000000 +0000 +++ davinci-8020-5504/linux-2.6.19.2/Documentation/kprobes.txt 2007-01-11 07:38:19.000000000 +0000 @@ -442,10 +442,9 @@ kp.fault_handler = handler_fault; kp.symbol_name = "do_fork"; - ret = register_kprobe(&kp); - if (ret < 0) { + if ((ret = register_kprobe(&kp) < 0)) { printk("register_kprobe failed, returned %d\n", ret); - return ret; + return -1; } printk("kprobe registered\n"); return 0;