staging: rtl8723au: Remove redundant casting in rtw_sta_mgt.c
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 28 May 2014 12:06:26 +0000 (17:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 May 2014 21:36:04 +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/core/rtw_sta_mgt.c

index b829c2eb0c5a0fa9035a54d9070442a6dcd27b70..14a82bea826ffc82f26caf3eecb1f9d9581aa7d6 100644 (file)
@@ -116,7 +116,7 @@ rtw_alloc_stainfo23a(struct sta_priv *pstapriv, u8 *hwaddr, gfp_t gfp)
        int i = 0;
        u16  wRxSeqInitialValue = 0xffff;
 
-       psta = (struct sta_info *)kmalloc(sizeof(struct sta_info), gfp);
+       psta = kmalloc(sizeof(struct sta_info), gfp);
        if (!psta)
                return NULL;