mirror of https://gitee.com/openkylin/linux.git
staging: rtl8723au: Remove redundant casting in rtw_wlan_util.c
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>
This commit is contained in:
parent
8f17a38c61
commit
e1a35432cd
|
@ -919,8 +919,7 @@ int rtw_check_bcn_info23a(struct rtw_adapter *Adapter,
|
|||
return true;
|
||||
}
|
||||
|
||||
bssid = (struct wlan_bssid_ex *)kzalloc(sizeof(struct wlan_bssid_ex),
|
||||
GFP_ATOMIC);
|
||||
bssid = kzalloc(sizeof(struct wlan_bssid_ex), GFP_ATOMIC);
|
||||
if (!bssid)
|
||||
return _FAIL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue