staging: rtl8723au: Remove redundant casting in usb_ops_linux.c
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 28 May 2014 12:06:30 +0000 (17:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 May 2014 21:36:05 +0000 (14:36 -0700)
Casting value returned by k[cmz]alloc is useless.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/usb_ops_linux.c

index 4ba6b47..8e9e61c 100644 (file)
@@ -382,8 +382,7 @@ static void usb_read_interrupt_complete(struct urb *purb)
                                struct evt_work *c2w;
                                int res;
 
-                               c2w = (struct evt_work *)
-                                       kmalloc(sizeof(struct evt_work),
+                               c2w = kmalloc(sizeof(struct evt_work),
                                                GFP_ATOMIC);
 
                                if (!c2w) {