summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-05-28 17:36:30 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-28 14:36:05 -0700
commitf9de4a30a5e647bff71509d6f5d419f6967ba291 (patch)
tree8fc74f866cf176803920ad8a057f57ab42a93a6c /drivers/staging
parent2e69759c149ccdb8785db56f3bf59f588b434619 (diff)
staging: rtl8723au: Remove redundant casting in usb_ops_linux.c
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/rtl8723au/hal/usb_ops_linux.c3
1 files changed, 1 insertions, 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) {