[linux-dvb] [PATCH] remove 'dvbdev' from struct dmxdev_filter

Andreas Oberritter obi at linuxtv.org
Thu Mar 9 06:09:32 CET 2006


From: Andreas Oberritter <obi at linuxtv.org>

The member dvbdev gets initialized once but is never used after that.

Signed-off-by: Andreas Oberritter <obi at linuxtv.org>
---

diff -r 4df072aa66f2 linux/drivers/media/dvb/dvb-core/dmxdev.c
--- a/linux/drivers/media/dvb/dvb-core/dmxdev.c	Thu Mar  9 05:57:56 2006 +0100
+++ b/linux/drivers/media/dvb/dvb-core/dmxdev.c	Thu Mar  9 06:04:29 2006 +0100
@@ -694,7 +694,6 @@ static int dvb_demux_open(struct inode *
 
 	dmxdevfilter=&dmxdev->filter[i];
 	mutex_init(&dmxdevfilter->mutex);
-	dmxdevfilter->dvbdev=dmxdev->dvbdev;
 	file->private_data=dmxdevfilter;
 
 	dvb_dmxdev_buffer_init(&dmxdevfilter->buffer);
diff -r 4df072aa66f2 linux/drivers/media/dvb/dvb-core/dmxdev.h
--- a/linux/drivers/media/dvb/dvb-core/dmxdev.h	Thu Mar  9 05:57:56 2006 +0100
+++ b/linux/drivers/media/dvb/dvb-core/dmxdev.h	Thu Mar  9 06:04:29 2006 +0100
@@ -65,8 +65,6 @@ struct dmxdev_buffer {
 };
 
 struct dmxdev_filter {
-	struct dvb_device *dvbdev;
-
 	union {
 		struct dmx_section_filter *sec;
 	} filter;





More information about the linux-dvb mailing list