Remove unneeded casts of (void *) pointers.

Signed-off-by: Domen Puncer <domen@coderock.org>

--- c/drivers/media/dvb/ttpci/av7110_av.c	2004-11-15 13:42:10.000000000 +0100
+++ a/drivers/media/dvb/ttpci/av7110_av.c	2004-12-03 14:56:35.000000000 +0100
@@ -96,7 +96,7 @@ static void p_to_t(u8 const *buf, long i
 
 int av7110_record_cb(struct dvb_filter_pes2ts *p2t, u8 *buf, size_t len)
 {
-	struct dvb_demux_feed *dvbdmxfeed = (struct dvb_demux_feed *) p2t->priv;
+	struct dvb_demux_feed *dvbdmxfeed = p2t->priv;
 
 	if (!(dvbdmxfeed->ts_type & TS_PACKET))
 		return 0;
@@ -111,7 +111,7 @@ int av7110_record_cb(struct dvb_filter_p
 
 static int dvb_filter_pes2ts_cb(void *priv, unsigned char *data)
 {
-	struct dvb_demux_feed *dvbdmxfeed = (struct dvb_demux_feed *) priv;
+	struct dvb_demux_feed *dvbdmxfeed = priv;
 
 	dvbdmxfeed->cb.ts(data, 188, NULL, 0,
 			  &dvbdmxfeed->feed.ts, DMX_OK);
@@ -136,7 +136,7 @@ int av7110_av_start_record(struct av7110
 		dvb_filter_pes2ts_init(&av7110->p2t[0],
 				       dvbdmx->pesfilter[0]->pid,
 				       dvb_filter_pes2ts_cb,
-				       (void *) dvbdmx->pesfilter[0]);
+				       dvbdmx->pesfilter[0]);
 		av7110_fw_cmd(av7110, COMTYPE_REC_PLAY, __Record, 2, AudioPES, 0);
 		break;
 
@@ -144,7 +144,7 @@ int av7110_av_start_record(struct av7110
 		dvb_filter_pes2ts_init(&av7110->p2t[1],
 				       dvbdmx->pesfilter[1]->pid,
 				       dvb_filter_pes2ts_cb,
-				       (void *) dvbdmx->pesfilter[1]);
+				       dvbdmx->pesfilter[1]);
 		av7110_fw_cmd(av7110, COMTYPE_REC_PLAY, __Record, 2, VideoPES, 0);
 		break;
 
@@ -152,11 +152,11 @@ int av7110_av_start_record(struct av7110
 		dvb_filter_pes2ts_init(&av7110->p2t[0],
 				       dvbdmx->pesfilter[0]->pid,
 				       dvb_filter_pes2ts_cb,
-				       (void *) dvbdmx->pesfilter[0]);
+				       dvbdmx->pesfilter[0]);
 		dvb_filter_pes2ts_init(&av7110->p2t[1],
 				       dvbdmx->pesfilter[1]->pid,
 				       dvb_filter_pes2ts_cb,
-				       (void *) dvbdmx->pesfilter[1]);
+				       dvbdmx->pesfilter[1]);
 		av7110_fw_cmd(av7110, COMTYPE_REC_PLAY, __Record, 2, AV_PES, 0);
 		break;
 	}
@@ -396,7 +396,7 @@ static inline long aux_ring_buffer_write
 
 static void play_video_cb(u8 *buf, int count, void *priv)
 {
-	struct av7110 *av7110 = (struct av7110 *) priv;
+	struct av7110 *av7110 = priv;
 	dprintk(2, "av7110:%p, \n", av7110);
 
 	if ((buf[3] & 0xe0) == 0xe0) {
@@ -408,7 +408,7 @@ static void play_video_cb(u8 *buf, int c
 
 static void play_audio_cb(u8 *buf, int count, void *priv)
 {
-	struct av7110 *av7110 = (struct av7110 *) priv;
+	struct av7110 *av7110 = priv;
 	dprintk(2, "av7110:%p, \n", av7110);
 
 	aux_ring_buffer_write(&av7110->aout, buf, count);
@@ -760,7 +760,7 @@ static void p_to_t(u8 const *buf, long i
 int av7110_write_to_decoder(struct dvb_demux_feed *feed, const u8 *buf, size_t len)
 {
 	struct dvb_demux *demux = feed->demux;
-	struct av7110 *av7110 = (struct av7110 *) demux->priv;
+	struct av7110 *av7110 = demux->priv;
 	struct ipack *ipack = &av7110->ipack[feed->pes_type];
 
 	dprintk(2, "av7110:%p, \n", av7110);
@@ -860,8 +860,8 @@ static int dvb_video_get_event (struct a
 
 static unsigned int dvb_video_poll(struct file *file, poll_table *wait)
 {
-	struct dvb_device *dvbdev = (struct dvb_device *) file->private_data;
-	struct av7110 *av7110 = (struct av7110 *) dvbdev->priv;
+	struct dvb_device *dvbdev = file->private_data;
+	struct av7110 *av7110 = dvbdev->priv;
 	unsigned int mask = 0;
 
 	dprintk(2, "av7110:%p, \n", av7110);
@@ -888,8 +888,8 @@ static unsigned int dvb_video_poll(struc
 static ssize_t dvb_video_write(struct file *file, const char __user *buf,
 			       size_t count, loff_t *ppos)
 {
-	struct dvb_device *dvbdev = (struct dvb_device *) file->private_data;
-	struct av7110 *av7110 = (struct av7110 *) dvbdev->priv;
+	struct dvb_device *dvbdev = file->private_data;
+	struct av7110 *av7110 = dvbdev->priv;
 
 	dprintk(2, "av7110:%p, \n", av7110);
 
@@ -904,8 +904,8 @@ static ssize_t dvb_video_write(struct fi
 
 static unsigned int dvb_audio_poll(struct file *file, poll_table *wait)
 {
-	struct dvb_device *dvbdev = (struct dvb_device *) file->private_data;
-	struct av7110 *av7110 = (struct av7110 *) dvbdev->priv;
+	struct dvb_device *dvbdev = file->private_data;
+	struct av7110 *av7110 = dvbdev->priv;
 	unsigned int mask = 0;
 
 	dprintk(2, "av7110:%p, \n", av7110);
@@ -924,8 +924,8 @@ static unsigned int dvb_audio_poll(struc
 static ssize_t dvb_audio_write(struct file *file, const char __user *buf,
 			       size_t count, loff_t *ppos)
 {
-	struct dvb_device *dvbdev = (struct dvb_device *) file->private_data;
-	struct av7110 *av7110 = (struct av7110 *) dvbdev->priv;
+	struct dvb_device *dvbdev = file->private_data;
+	struct av7110 *av7110 = dvbdev->priv;
 
 	dprintk(2, "av7110:%p, \n", av7110);
 
@@ -969,8 +969,8 @@ static int play_iframe(struct av7110 *av
 static int dvb_video_ioctl(struct inode *inode, struct file *file,
 			   unsigned int cmd, void *parg)
 {
-	struct dvb_device *dvbdev = (struct dvb_device *) file->private_data;
-	struct av7110 *av7110 = (struct av7110 *) dvbdev->priv;
+	struct dvb_device *dvbdev = file->private_data;
+	struct av7110 *av7110 = dvbdev->priv;
 	unsigned long arg = (unsigned long) parg;
 	int ret = 0;
 
@@ -1093,8 +1093,7 @@ static int dvb_video_ioctl(struct inode 
 
 	case VIDEO_STILLPICTURE:
 	{
-		struct video_still_picture *pic =
-			(struct video_still_picture *) parg;
+		struct video_still_picture *pic = parg;
 		av7110->videostate.stream_source = VIDEO_SOURCE_MEMORY;
 		dvb_ringbuffer_flush_spinlock_wakeup(&av7110->avout);
 		ret = play_iframe(av7110, pic->iFrame, pic->size,
@@ -1165,8 +1164,8 @@ static int dvb_video_ioctl(struct inode 
 static int dvb_audio_ioctl(struct inode *inode, struct file *file,
 			   unsigned int cmd, void *parg)
 {
-	struct dvb_device *dvbdev = (struct dvb_device *) file->private_data;
-	struct av7110 *av7110 = (struct av7110 *) dvbdev->priv;
+	struct dvb_device *dvbdev = file->private_data;
+	struct av7110 *av7110 = dvbdev->priv;
 	unsigned long arg = (unsigned long) parg;
 	int ret = 0;
 
@@ -1266,7 +1265,7 @@ static int dvb_audio_ioctl(struct inode 
 		break;
 	case AUDIO_SET_MIXER:
 	{
-		struct audio_mixer *amix = (struct audio_mixer *)parg;
+		struct audio_mixer *amix = parg;
 
 		av7110_set_volume(av7110, amix->volume_left, amix->volume_right);
 		break;
@@ -1282,8 +1281,8 @@ static int dvb_audio_ioctl(struct inode 
 
 static int dvb_video_open(struct inode *inode, struct file *file)
 {
-	struct dvb_device *dvbdev = (struct dvb_device *) file->private_data;
-	struct av7110 *av7110 = (struct av7110 *) dvbdev->priv;
+	struct dvb_device *dvbdev = file->private_data;
+	struct av7110 *av7110 = dvbdev->priv;
 	int err;
 
 	dprintk(2, "av7110:%p, \n", av7110);
@@ -1307,8 +1306,8 @@ static int dvb_video_open(struct inode *
 
 static int dvb_video_release(struct inode *inode, struct file *file)
 {
-	struct dvb_device *dvbdev = (struct dvb_device *) file->private_data;
-	struct av7110 *av7110 = (struct av7110 *) dvbdev->priv;
+	struct dvb_device *dvbdev = file->private_data;
+	struct av7110 *av7110 = dvbdev->priv;
 
 	dprintk(2, "av7110:%p, \n", av7110);
 
@@ -1321,8 +1320,8 @@ static int dvb_video_release(struct inod
 
 static int dvb_audio_open(struct inode *inode, struct file *file)
 {
-	struct dvb_device *dvbdev = (struct dvb_device *) file->private_data;
-	struct av7110 *av7110 = (struct av7110 *) dvbdev->priv;
+	struct dvb_device *dvbdev = file->private_data;
+	struct av7110 *av7110 = dvbdev->priv;
 	int err=dvb_generic_open(inode, file);
 
 	dprintk(2, "av7110:%p, \n", av7110);
@@ -1336,8 +1335,8 @@ static int dvb_audio_open(struct inode *
 
 static int dvb_audio_release(struct inode *inode, struct file *file)
 {
-	struct dvb_device *dvbdev = (struct dvb_device *) file->private_data;
-	struct av7110 *av7110 = (struct av7110 *) dvbdev->priv;
+	struct dvb_device *dvbdev = file->private_data;
+	struct av7110 *av7110 = dvbdev->priv;
 
 	dprintk(2, "av7110:%p, \n", av7110);
 
@@ -1429,9 +1428,9 @@ int av7110_av_init(struct av7110 *av7110
 	av7110->vidmode = VIDEO_MODE_PAL;
 
 	av7110_ipack_init(&av7110->ipack[0], IPACKS, play_audio_cb);
-	av7110->ipack[0].data = (void *) av7110;
+	av7110->ipack[0].data = av7110;
 	av7110_ipack_init(&av7110->ipack[1], IPACKS, play_video_cb);
-	av7110->ipack[1].data = (void *) av7110;
+	av7110->ipack[1].data = av7110;
 
 	dvb_ringbuffer_init(&av7110->avout, av7110->iobuf, AVOUTLEN);
 	dvb_ringbuffer_init(&av7110->aout, av7110->iobuf + AVOUTLEN, AOUTLEN);
