From f9de4a30a5e647bff71509d6f5d419f6967ba291 Mon Sep 17 00:00:00 2001 From: Sachin Kamat Date: Wed, 28 May 2014 17:36:30 +0530 Subject: [PATCH] staging: rtl8723au: Remove redundant casting in usb_ops_linux.c Casting value returned by k[cmz]alloc is useless. Signed-off-by: Sachin Kamat Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8723au/hal/usb_ops_linux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723au/hal/usb_ops_linux.c b/drivers/staging/rtl8723au/hal/usb_ops_linux.c index 4ba6b47e6f5b..8e9e61c74bd0 100644 --- a/drivers/staging/rtl8723au/hal/usb_ops_linux.c +++ b/drivers/staging/rtl8723au/hal/usb_ops_linux.c @@ -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) {