Staging:rtl8821ae: Drop memory allocation cast for kmalloc in hal_btc.c
authorIulia Manda <iulia.manda21@gmail.com>
Sat, 8 Mar 2014 14:54:09 +0000 (16:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Mar 2014 04:31:53 +0000 (20:31 -0800)
Remove unnecessary cast for kmalloc, after running alloc_cast.cocci semantic patch.

Signed-off-by: Iulia Manda <iulia.manda21@gmail.com>
Reviewed-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8821ae/rtl8821ae/hal_btc.c

index 6898868ce6e7b0d4a1c9448188300c8385af5bee..7b1d113505fbd219ac91243841c43edbed7e0ec6 100644 (file)
@@ -2025,7 +2025,7 @@ void rtl_8821ae_c2h_command_handle(struct ieee80211_hw *hw)
                rtl_write_byte(rtlpriv, 0x1AF, 0x00);
                return;
        }
-       ptmp_buf = (u8 *) kmalloc(c2h_event.cmd_len, GFP_KERNEL);
+       ptmp_buf = kmalloc(c2h_event.cmd_len, GFP_KERNEL);
        if(ptmp_buf == NULL) {
                RT_TRACE(COMP_FW, DBG_TRACE, ("malloc cmd buf failed\n"));
                return;