Commit db5767a3 authored by Sachin Kamat's avatar Sachin Kamat Committed by Greg Kroah-Hartman

staging: rtl8723au: Remove redundant casting in rtw_mlme.c

Casting value returned by kzalloc is useless.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 248c9591
...@@ -1820,7 +1820,7 @@ int rtw_set_auth23a(struct rtw_adapter * adapter, ...@@ -1820,7 +1820,7 @@ int rtw_set_auth23a(struct rtw_adapter * adapter,
struct cmd_priv *pcmdpriv = &adapter->cmdpriv; struct cmd_priv *pcmdpriv = &adapter->cmdpriv;
int res = _SUCCESS; int res = _SUCCESS;
pcmd = (struct cmd_obj *)kzalloc(sizeof(struct cmd_obj), GFP_KERNEL); pcmd = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL);
if (!pcmd) { if (!pcmd) {
res = _FAIL; /* try again */ res = _FAIL; /* try again */
goto exit; goto exit;
......
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