summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2017-09-09 13:14:54 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-17 16:35:26 +0200
commit2ef2b7c21fc8772d68369af96fe45c09c46aca30 (patch)
tree50154e84f489135288724ab80ba4bf0a4482e8f8 /drivers/staging/rtl8723bs/core/rtw_wlan_util.c
parent35628c4ad0f3800d3744fd5d4b7315e51c5e407e (diff)
downloadlinux-2ef2b7c21fc8772d68369af96fe45c09c46aca30.tar.bz2
staging: rtl8723bs: Remove unnecessary rtw_z?malloc casts
These functions now return void * and no longer need casts. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs/core/rtw_wlan_util.c')
-rw-r--r--drivers/staging/rtl8723bs/core/rtw_wlan_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
index f485f541e36d..a1695348d1d5 100644
--- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
+++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
@@ -1359,7 +1359,7 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len)
return true;
}
- bssid = (struct wlan_bssid_ex *)rtw_zmalloc(sizeof(struct wlan_bssid_ex));
+ bssid = rtw_zmalloc(sizeof(struct wlan_bssid_ex));
if (bssid == NULL) {
DBG_871X("%s rtw_zmalloc fail !!!\n", __func__);
return true;