[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>
This commit is contained in:
Alexey Dobriyan
2006-01-10 00:09:16 +03:00
committed by Linus Torvalds
parent 41ed16fa47
commit 682e852e26
3 changed files with 6 additions and 3 deletions

View File

@@ -1171,7 +1171,8 @@ static int __init vpe_module_init(void)
return -ENODEV;
}
if ((major = register_chrdev(0, module_name, &vpe_fops) < 0)) {
major = register_chrdev(0, module_name, &vpe_fops);
if (major < 0) {
printk("VPE loader: unable to register character device\n");
return major;
}