From: Iulia Manda Date: Sat, 8 Mar 2014 14:54:09 +0000 (+0200) Subject: Staging:rtl8821ae: Drop memory allocation cast for kmalloc in hal_btc.c X-Git-Tag: MMI-PSA29.97-13-9~12500^2~493 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0481dccb89995bc052597cce62696e90a0978081;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging:rtl8821ae: Drop memory allocation cast for kmalloc in hal_btc.c Remove unnecessary cast for kmalloc, after running alloc_cast.cocci semantic patch. Signed-off-by: Iulia Manda Reviewed-by: Sarah Sharp Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8821ae/rtl8821ae/hal_btc.c b/drivers/staging/rtl8821ae/rtl8821ae/hal_btc.c index 6898868ce6e7..7b1d113505fb 100644 --- a/drivers/staging/rtl8821ae/rtl8821ae/hal_btc.c +++ b/drivers/staging/rtl8821ae/rtl8821ae/hal_btc.c @@ -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;