staging: rtl8723au: Remove redundant casting in rtl8723a_hal_init.c
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 28 May 2014 12:06:29 +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/hal/rtl8723a_hal_init.c

index 487629c..0acacab 100644 (file)
@@ -489,7 +489,7 @@ hal_ReadEFuse_WiFi(struct rtw_adapter *padapter,
                return;
        }
 
-       efuseTbl = (u8 *) kmalloc(EFUSE_MAP_LEN_8723A, GFP_KERNEL);
+       efuseTbl = kmalloc(EFUSE_MAP_LEN_8723A, GFP_KERNEL);
        if (efuseTbl == NULL) {
                DBG_8723A("%s: alloc efuseTbl fail!\n", __func__);
                return;