Remove unneeded casts of (void *) pointers.

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

--- c/drivers/net/irda/donauboe.c	2004-08-17 11:45:07.000000000 +0200
+++ a/drivers/net/irda/donauboe.c	2004-12-03 12:24:27.000000000 +0100
@@ -711,7 +711,7 @@ stuff_byte (__u8 byte, __u8 * buf)
 static irqreturn_t
 toshoboe_probeinterrupt (int irq, void *dev_id, struct pt_regs *regs)
 {
-  struct toshoboe_cb *self = (struct toshoboe_cb *) dev_id;
+  struct toshoboe_cb *self = dev_id;
   __u8 irqstat;
 
   if (self == NULL && toshoboe_invalid_dev(irq))
@@ -800,7 +800,7 @@ toshoboe_probefail (struct toshoboe_cb *
   printk (KERN_ERR DRIVER_NAME "probe(%d) failed %s\n",self-> speed, msg);
   toshoboe_dumpregs (self);
   toshoboe_stopchip (self);
-  free_irq (self->io.irq, (void *) self);
+  free_irq (self->io.irq, self);
   return 0;
 }
 
@@ -840,7 +840,7 @@ toshoboe_probe (struct toshoboe_cb *self
   IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
 
   if (request_irq (self->io.irq, toshoboe_probeinterrupt,
-                   self->io.irqflags, "toshoboe", (void *) self))
+                   self->io.irqflags, "toshoboe", self))
     {
       printk (KERN_ERR DRIVER_NAME ": probe failed to allocate irq %d\n",
               self->io.irq);
@@ -971,7 +971,7 @@ toshoboe_probe (struct toshoboe_cb *self
   toshoboe_setbaud (self);
   toshoboe_stopchip (self);
 
-  free_irq (self->io.irq, (void *) self);
+  free_irq (self->io.irq, self);
 
   printk (KERN_WARNING DRIVER_NAME ": Self test passed ok\n");
 
@@ -992,7 +992,7 @@ toshoboe_hard_xmit (struct sk_buff *skb,
   unsigned long flags;
   struct irda_skb_cb *cb = (struct irda_skb_cb *) skb->cb;
 
-  self = (struct toshoboe_cb *) dev->priv;
+  self = dev->priv;
 
   ASSERT (self != NULL, return 0; );
 
@@ -1163,7 +1163,7 @@ dumpbufs(skb->data,skb->len,'>');
 static irqreturn_t
 toshoboe_interrupt (int irq, void *dev_id, struct pt_regs *regs)
 {
-  struct toshoboe_cb *self = (struct toshoboe_cb *) dev_id;
+  struct toshoboe_cb *self = dev_id;
   __u8 irqstat;
   struct sk_buff *skb = NULL;
 
@@ -1361,7 +1361,7 @@ toshoboe_net_open (struct net_device *de
   IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
 
   ASSERT (dev != NULL, return -1; );
-  self = (struct toshoboe_cb *) dev->priv;
+  self = dev->priv;
 
   ASSERT (self != NULL, return 0; );
 
@@ -1372,7 +1372,7 @@ toshoboe_net_open (struct net_device *de
     return 0;
 
   if (request_irq (self->io.irq, toshoboe_interrupt,
-                   SA_SHIRQ | SA_INTERRUPT, dev->name, (void *) self))
+                   SA_SHIRQ | SA_INTERRUPT, dev->name, self))
     {
       return -EAGAIN;
     }
@@ -1403,7 +1403,7 @@ toshoboe_net_close (struct net_device *d
   IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
 
   ASSERT (dev != NULL, return -1; );
-  self = (struct toshoboe_cb *) dev->priv;
+  self = dev->priv;
 
   /* Stop device */
   netif_stop_queue(dev);
@@ -1415,7 +1415,7 @@ toshoboe_net_close (struct net_device *d
 
   self->irdad = 0;
 
-  free_irq (self->io.irq, (void *) self);
+  free_irq (self->io.irq, self);
 
   if (!self->stopped)
     {
@@ -1505,7 +1505,7 @@ static void
 toshoboe_close (struct pci_dev *pci_dev)
 {
   int i;
-  struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev);
+  struct toshoboe_cb *self = pci_get_drvdata(pci_dev);
 
   IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
 
@@ -1614,7 +1614,7 @@ toshoboe_open (struct pci_dev *pci_dev, 
   irda_qos_bits_to_value (&self->qos);
 
   /* Allocate twice the size to guarantee alignment */
-  self->ringbuf = (void *) kmalloc (OBOE_RING_LEN << 1, GFP_KERNEL);
+  self->ringbuf = kmalloc (OBOE_RING_LEN << 1, GFP_KERNEL);
   if (!self->ringbuf)
     {
       printk (KERN_ERR DRIVER_NAME ": can't allocate DMA buffers\n");
@@ -1714,7 +1714,7 @@ freeself:
 static int
 toshoboe_gotosleep (struct pci_dev *pci_dev, u32 crap)
 {
-  struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev);
+  struct toshoboe_cb *self = pci_get_drvdata(pci_dev);
   unsigned long flags;
   int i = 10;
 
@@ -1743,7 +1743,7 @@ toshoboe_gotosleep (struct pci_dev *pci_
 static int
 toshoboe_wakeup (struct pci_dev *pci_dev)
 {
-  struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev);
+  struct toshoboe_cb *self = pci_get_drvdata(pci_dev);
   unsigned long flags;
 
   IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
