staging: rtl8723au: Remove redundant casting in rtw_mlme.c
Casting value returned by kzalloc 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
248c959152
commit
db5767a3f9
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue