summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2003-10-15 10:58:07 +0000
committerHolger Waechtler <devnull@localhost>2003-10-15 10:58:07 +0000
commitbc06d6dfc3f92f52f78be6aeac0b4f7222d26dab (patch)
tree58342d60f3bbf317d0c4edc1e6ae11ade9f3fc33 /linux/drivers/media
parent6d3c423ad200b561db9278cff3d91774eb6be215 (diff)
downloadmediapointer-dvb-s2-bc06d6dfc3f92f52f78be6aeac0b4f7222d26dab.tar.gz
mediapointer-dvb-s2-bc06d6dfc3f92f52f78be6aeac0b4f7222d26dab.tar.bz2
fixed the bug found by this portuguese girl.
Michael: Please test if your code compiles before you commit!
Diffstat (limited to 'linux/drivers/media')
-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;