mirror of
https://github.com/torvalds/linux.git
synced 2025-01-01 07:42:07 +00:00
staging: rtl8723au: Remove redundant casting in rtw_mlme.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
6d488a0c78
commit
47b0c98db4
@ -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,
|
|||||||
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user