summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/vpe.c
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 /arch/mips/kernel/vpe.c
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 'arch/mips/kernel/vpe.c')
-rw-r--r--arch/mips/kernel/vpe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c
index 06be405be399..9c89eebc356f 100644
--- a/arch/mips/kernel/vpe.c
+++ b/arch/mips/kernel/vpe.c
@@ -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;
}