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

staging: rtl8723au: Remove redundant casting in rtw_mlme.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>
上级 6d488a0c
...@@ -1824,8 +1824,7 @@ int rtw_set_auth23a(struct rtw_adapter * adapter, ...@@ -1824,8 +1824,7 @@ int rtw_set_auth23a(struct rtw_adapter * adapter,
goto exit; goto exit;
} }
psetauthparm = (struct setauth_parm*) psetauthparm = kzalloc(sizeof(struct setauth_parm), GFP_KERNEL);
kzalloc(sizeof(struct setauth_parm), GFP_KERNEL);
if (!psetauthparm) { if (!psetauthparm) {
kfree(pcmd); kfree(pcmd);
res = _FAIL; res = _FAIL;
...@@ -1866,7 +1865,7 @@ int rtw_set_key23a(struct rtw_adapter *adapter, ...@@ -1866,7 +1865,7 @@ int rtw_set_key23a(struct rtw_adapter *adapter,
goto exit; goto exit;
} }
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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册