[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:
committed by
Linus Torvalds
parent
41ed16fa47
commit
682e852e26
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user