Commit 0481dccb authored by Iulia Manda's avatar Iulia Manda Committed by Greg Kroah-Hartman

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: default avatarIulia Manda <iulia.manda21@gmail.com>
Reviewed-by: default avatarSarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cf2eb6ba
...@@ -2025,7 +2025,7 @@ void rtl_8821ae_c2h_command_handle(struct ieee80211_hw *hw) ...@@ -2025,7 +2025,7 @@ void rtl_8821ae_c2h_command_handle(struct ieee80211_hw *hw)
rtl_write_byte(rtlpriv, 0x1AF, 0x00); rtl_write_byte(rtlpriv, 0x1AF, 0x00);
return; return;
} }
ptmp_buf = (u8 *) kmalloc(c2h_event.cmd_len, GFP_KERNEL); ptmp_buf = kmalloc(c2h_event.cmd_len, GFP_KERNEL);
if(ptmp_buf == NULL) { if(ptmp_buf == NULL) {
RT_TRACE(COMP_FW, DBG_TRACE, ("malloc cmd buf failed\n")); RT_TRACE(COMP_FW, DBG_TRACE, ("malloc cmd buf failed\n"));
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment