diff options
author | Peter Beutner <p.beutner@gmx.net> | 2006-02-26 22:09:23 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-02-26 22:09:23 -0500 |
commit | 3b81fec4328799e94789e8404e6e8b7218c096f6 (patch) | |
tree | bf46e6ebbbdae9bacf0947ea8e2311c4e1b12d88 /drivers/media/dvb/dvb-core/dmxdev.c | |
parent | 1be11e367f25d3874276d56d1c4ffed5b3cc3bb9 (diff) |
V4L/DVB (3386): Dvb-core: remove dead code
The field "dvr" in struct dmxdev is competely unused. Remove
it and code which allocates, initializes and frees it.
Signed-off-by: Peter Beutner <p.beutner@gmx.net>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-core/dmxdev.c')
-rw-r--r-- | drivers/media/dvb/dvb-core/dmxdev.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/media/dvb/dvb-core/dmxdev.c b/drivers/media/dvb/dvb-core/dmxdev.c index ead5343d7706..4c52c8521bd8 100644 --- a/drivers/media/dvb/dvb-core/dmxdev.c +++ b/drivers/media/dvb/dvb-core/dmxdev.c | |||
@@ -160,13 +160,6 @@ static struct dmx_frontend * get_fe(struct dmx_demux *demux, int type) | |||
160 | return NULL; | 160 | return NULL; |
161 | } | 161 | } |
162 | 162 | ||
163 | static inline void dvb_dmxdev_dvr_state_set(struct dmxdev_dvr *dmxdevdvr, int state) | ||
164 | { | ||
165 | spin_lock_irq(&dmxdevdvr->dev->lock); | ||
166 | dmxdevdvr->state=state; | ||
167 | spin_unlock_irq(&dmxdevdvr->dev->lock); | ||
168 | } | ||
169 | |||
170 | static int dvb_dvr_open(struct inode *inode, struct file *file) | 163 | static int dvb_dvr_open(struct inode *inode, struct file *file) |
171 | { | 164 | { |
172 | struct dvb_device *dvbdev = file->private_data; | 165 | struct dvb_device *dvbdev = file->private_data; |
@@ -1106,22 +1099,12 @@ dvb_dmxdev_init(struct dmxdev *dmxdev, struct dvb_adapter *dvb_adapter) | |||
1106 | if (!dmxdev->filter) | 1099 | if (!dmxdev->filter) |
1107 | return -ENOMEM; | 1100 | return -ENOMEM; |
1108 | 1101 | ||
1109 | dmxdev->dvr = vmalloc(dmxdev->filternum*sizeof(struct dmxdev_dvr)); | ||
1110 | if (!dmxdev->dvr) { | ||
1111 | vfree(dmxdev->filter); | ||
1112 | dmxdev->filter = NULL; | ||
1113 | return -ENOMEM; | ||
1114 | } | ||
1115 | |||
1116 | mutex_init(&dmxdev->mutex); | 1102 | mutex_init(&dmxdev->mutex); |
1117 | spin_lock_init(&dmxdev->lock); | 1103 | spin_lock_init(&dmxdev->lock); |
1118 | for (i=0; i<dmxdev->filternum; i++) { | 1104 | for (i=0; i<dmxdev->filternum; i++) { |
1119 | dmxdev->filter[i].dev=dmxdev; | 1105 | dmxdev->filter[i].dev=dmxdev; |
1120 | dmxdev->filter[i].buffer.data=NULL; | 1106 | dmxdev->filter[i].buffer.data=NULL; |
1121 | dvb_dmxdev_filter_state_set(&dmxdev->filter[i], DMXDEV_STATE_FREE); | 1107 | dvb_dmxdev_filter_state_set(&dmxdev->filter[i], DMXDEV_STATE_FREE); |
1122 | dmxdev->dvr[i].dev=dmxdev; | ||
1123 | dmxdev->dvr[i].buffer.data=NULL; | ||
1124 | dvb_dmxdev_dvr_state_set(&dmxdev->dvr[i], DMXDEV_STATE_FREE); | ||
1125 | } | 1108 | } |
1126 | 1109 | ||
1127 | dvb_register_device(dvb_adapter, &dmxdev->dvbdev, &dvbdev_demux, dmxdev, DVB_DEVICE_DEMUX); | 1110 | dvb_register_device(dvb_adapter, &dmxdev->dvbdev, &dvbdev_demux, dmxdev, DVB_DEVICE_DEMUX); |
@@ -1141,8 +1124,6 @@ dvb_dmxdev_release(struct dmxdev *dmxdev) | |||
1141 | 1124 | ||
1142 | vfree(dmxdev->filter); | 1125 | vfree(dmxdev->filter); |
1143 | dmxdev->filter=NULL; | 1126 | dmxdev->filter=NULL; |
1144 | vfree(dmxdev->dvr); | ||
1145 | dmxdev->dvr=NULL; | ||
1146 | dmxdev->demux->close(dmxdev->demux); | 1127 | dmxdev->demux->close(dmxdev->demux); |
1147 | } | 1128 | } |
1148 | EXPORT_SYMBOL(dvb_dmxdev_release); | 1129 | EXPORT_SYMBOL(dvb_dmxdev_release); |