summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvbdev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvbdev.c b/linux/drivers/media/dvb/dvb-core/dvbdev.c
index cf5850799..bcfb827d4 100644
--- a/linux/drivers/media/dvb/dvb-core/dvbdev.c
+++ b/linux/drivers/media/dvb/dvb-core/dvbdev.c
@@ -355,8 +355,7 @@ static int __init init_dvbdev(void)
devfs_mk_dir("dvb");
#endif
#ifndef CONFIG_DVB_DEVFS_ONLY
- retval register_chrdev(DVB_MAJOR,"DVB", &dvb_device_fops);
- if(0 != retval) {
+ if ((retval = register_chrdev(DVB_MAJOR,"DVB", &dvb_device_fops)))
printk("video_dev: unable to get major %d\n", DVB_MAJOR);
#endif
return retval;