|
@@ -509,12 +509,12 @@ static int kingsun_probe(struct usb_interface *intf,
|
|
spin_lock_init(&kingsun->lock);
|
|
spin_lock_init(&kingsun->lock);
|
|
|
|
|
|
/* Allocate input buffer */
|
|
/* 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)
|
|
if (!kingsun->in_buf)
|
|
goto free_mem;
|
|
goto free_mem;
|
|
|
|
|
|
/* Allocate output buffer */
|
|
/* 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)
|
|
if (!kingsun->out_buf)
|
|
goto free_mem;
|
|
goto free_mem;
|
|
|
|
|