summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/videobuf-dvb.c
diff options
context:
space:
mode:
authordarron@kewl.org <darron@kewl.org>2008-10-16 00:26:34 +0100
committerdarron@kewl.org <darron@kewl.org>2008-10-16 00:26:34 +0100
commita02327e81915e000e69a6db7297d68d578b8df97 (patch)
tree30f1a6427ff4bc7e304d86c5043d9c6293c1f5e7 /linux/drivers/media/video/videobuf-dvb.c
parent88ad9b4d994c8b8e301d0097ae3d6e27bf717683 (diff)
downloadmediapointer-dvb-s2-a02327e81915e000e69a6db7297d68d578b8df97.tar.gz
mediapointer-dvb-s2-a02327e81915e000e69a6db7297d68d578b8df97.tar.bz2
videobuf: data storage optimisation (2)
From: Darron Broad <darron@kewl.org> To optimise data storage even further one other redundant var has been removed. This also removes a redundant assignment. Priority: normal Signed-off-by: Darron Broad <darron@kewl.org> iSigned-off-by: Steven Toth <stoth@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/videobuf-dvb.c')
-rw-r--r--linux/drivers/media/video/videobuf-dvb.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/linux/drivers/media/video/videobuf-dvb.c b/linux/drivers/media/video/videobuf-dvb.c
index 12dcd486a..67cee5ea9 100644
--- a/linux/drivers/media/video/videobuf-dvb.c
+++ b/linux/drivers/media/video/videobuf-dvb.c
@@ -312,10 +312,8 @@ void videobuf_dvb_unregister_bus(struct videobuf_dvb_frontends *f)
dvb_dmx_release(&fe->dvb.demux);
dvb_unregister_frontend(fe->dvb.frontend);
}
- if(fe->dvb.frontend) { /* always allocated, may have been reset */
+ if(fe->dvb.frontend) /* always allocated, may have been reset */
dvb_frontend_detach(fe->dvb.frontend);
- fe->dvb.frontend = NULL;
- }
list_del(list);
kfree(fe);
}
@@ -365,7 +363,7 @@ int videobuf_dvb_find_frontend(struct videobuf_dvb_frontends *f, struct dvb_fron
return ret;
}
-struct videobuf_dvb_frontend * videobuf_dvb_alloc_frontend(void *private, struct videobuf_dvb_frontends *f, int id)
+struct videobuf_dvb_frontend * videobuf_dvb_alloc_frontend(struct videobuf_dvb_frontends *f, int id)
{
struct videobuf_dvb_frontend *fe;
@@ -373,7 +371,6 @@ struct videobuf_dvb_frontend * videobuf_dvb_alloc_frontend(void *private, struct
if (fe == NULL)
goto fail_alloc;
- fe->dev = private;
fe->id = id;
mutex_init(&fe->dvb.lock);