From bc06d6dfc3f92f52f78be6aeac0b4f7222d26dab Mon Sep 17 00:00:00 2001 From: Holger Waechtler Date: Wed, 15 Oct 2003 10:58:07 +0000 Subject: fixed the bug found by this portuguese girl. Michael: Please test if your code compiles before you commit! --- linux/drivers/media/dvb/dvb-core/dvbdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'linux/drivers/media') 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; -- cgit v1.2.3