提交 e1a35432 编写于 作者: S Sachin Kamat 提交者: Greg Kroah-Hartman

staging: rtl8723au: Remove redundant casting in rtw_wlan_util.c

Casting value returned by k[cmz]alloc is useless.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 8f17a38c
...@@ -919,8 +919,7 @@ int rtw_check_bcn_info23a(struct rtw_adapter *Adapter, ...@@ -919,8 +919,7 @@ int rtw_check_bcn_info23a(struct rtw_adapter *Adapter,
return true; return true;
} }
bssid = (struct wlan_bssid_ex *)kzalloc(sizeof(struct wlan_bssid_ex), bssid = kzalloc(sizeof(struct wlan_bssid_ex), GFP_ATOMIC);
GFP_ATOMIC);
if (!bssid) if (!bssid)
return _FAIL; return _FAIL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册