Remove unneeded casts of (void *) pointers.

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

--- c/drivers/net/irda/irport.c	2004-11-15 13:42:11.000000000 +0100
+++ a/drivers/net/irda/irport.c	2004-12-03 12:32:20.000000000 +0100
@@ -201,7 +201,7 @@ irport_open(int i, unsigned int iobase, 
 	
 	/* Allocate memory if needed */
 	if (self->tx_buff.truesize > 0) {
-		self->tx_buff.head = (__u8 *) kmalloc(self->tx_buff.truesize, 
+		self->tx_buff.head = kmalloc(self->tx_buff.truesize, 
 						      GFP_KERNEL);
 		if (self->tx_buff.head == NULL) {
 			ERROR("%s(), can't allocate memory for "
@@ -370,7 +370,7 @@ static inline unsigned int irport_get_fc
  */
 void irport_change_speed(void *priv, __u32 speed)
 {
-	struct irport_cb *self = (struct irport_cb *) priv;
+	struct irport_cb *self = priv;
 	int iobase; 
 	unsigned int fcr;    /* FIFO control reg */
 	unsigned int lcr;    /* Line control reg */
@@ -429,7 +429,7 @@ int __irport_change_speed(struct irda_ta
 
 	IRDA_DEBUG(2, "%s(), <%ld>\n", __FUNCTION__, jiffies); 
 
-	self = (struct irport_cb *) task->instance;
+	self = task->instance;
 
 	ASSERT(self != NULL, return -1;);
 
@@ -515,7 +515,7 @@ static int irport_change_speed_complete(
 
 	IRDA_DEBUG(1, "%s()\n", __FUNCTION__);
 
-	self = (struct irport_cb *) task->instance;
+	self = task->instance;
 
 	ASSERT(self != NULL, return -1;);
 	ASSERT(self->netdev != NULL, return -1;);
@@ -542,7 +542,7 @@ static void irport_timeout(struct net_de
 	int iir, lsr;
 	unsigned long flags;
 
-	self = (struct irport_cb *) dev->priv;
+	self = dev->priv;
 	ASSERT(self != NULL, return;);
 	iobase = self->io.sir_base;
 	
@@ -630,7 +630,7 @@ int irport_hard_xmit(struct sk_buff *skb
 
 	ASSERT(dev != NULL, return 0;);
 	
-	self = (struct irport_cb *) dev->priv;
+	self = dev->priv;
 	ASSERT(self != NULL, return 0;);
 
 	iobase = self->io.sir_base;
@@ -816,7 +816,7 @@ static inline void irport_receive(struct
  */
 irqreturn_t irport_interrupt(int irq, void *dev_id, struct pt_regs *regs) 
 {
-	struct net_device *dev = (struct net_device *) dev_id;
+	struct net_device *dev = dev_id;
 	struct irport_cb *self;
 	int boguscount = 0;
 	int iobase;
@@ -827,7 +827,7 @@ irqreturn_t irport_interrupt(int irq, vo
 		WARNING("%s() irq %d for unknown device.\n", __FUNCTION__, irq);
 		return IRQ_NONE;
 	}
-	self = (struct irport_cb *) dev->priv;
+	self = dev->priv;
 
 	spin_lock(&self->lock);
 
@@ -898,12 +898,11 @@ int irport_net_open(struct net_device *d
 	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
 
 	ASSERT(dev != NULL, return -1;);
-	self = (struct irport_cb *) dev->priv;
+	self = dev->priv;
 
 	iobase = self->io.sir_base;
 
-	if (request_irq(self->io.irq, self->interrupt, 0, dev->name, 
-			(void *) dev)) {
+	if (request_irq(self->io.irq, self->interrupt, 0, dev->name, dev)) {
 		IRDA_DEBUG(0, "%s(), unable to allocate irq=%d\n",
 			   __FUNCTION__, self->io.irq);
 		return -EAGAIN;
@@ -950,7 +949,7 @@ int irport_net_close(struct net_device *
 	IRDA_DEBUG(4, "%s()\n", __FUNCTION__);
 
 	ASSERT(dev != NULL, return -1;);
-	self = (struct irport_cb *) dev->priv;
+	self = dev->priv;
 
 	ASSERT(self != NULL, return -1;);
 
@@ -1011,7 +1010,7 @@ static int irport_set_dtr_rts(struct net
 
 static int irport_raw_write(struct net_device *dev, __u8 *buf, int len)
 {
-	struct irport_cb *self = (struct irport_cb *) dev->priv;
+	struct irport_cb *self = dev->priv;
 	int actual = 0;
 	int iobase;
 
@@ -1129,7 +1128,7 @@ static int irport_net_ioctl(struct net_d
 
 static struct net_device_stats *irport_net_get_stats(struct net_device *dev)
 {
-	struct irport_cb *self = (struct irport_cb *) dev->priv;
+	struct irport_cb *self = dev->priv;
 	
 	return &self->stats;
 }
