[IRDA]: Do not do pointless kmalloc return value cast in KingSun driver
authorJesper Juhl <jesper.juhl@gmail.com>
Sat, 25 Aug 2007 06:23:41 +0000 (23:23 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 27 Aug 2007 01:35:44 +0000 (18:35 -0700)
kmalloc() returns a void pointer, so there is no need to cast it in
 drivers/net/irda/kingsun-sir.c::kingsun_probe().

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/irda/kingsun-sir.c

index bdd5c979beadc249e7a70bb5a0e47cbfaf03c5a8..4e5101a45c3c62c69bf27d44b38bcd9d0467c73c 100644 (file)
@@ -509,12 +509,12 @@ static int kingsun_probe(struct usb_interface *intf,
        spin_lock_init(&kingsun->lock);
 
        /* Allocate input buffer */
-       kingsun->in_buf = (__u8 *)kmalloc(kingsun->max_rx, GFP_KERNEL);
+       kingsun->in_buf = kmalloc(kingsun->max_rx, GFP_KERNEL);
        if (!kingsun->in_buf)
                goto free_mem;
 
        /* Allocate output buffer */
-       kingsun->out_buf = (__u8 *)kmalloc(KINGSUN_FIFO_SIZE, GFP_KERNEL);
+       kingsun->out_buf = kmalloc(KINGSUN_FIFO_SIZE, GFP_KERNEL);
        if (!kingsun->out_buf)
                goto free_mem;