Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47b0c98d authored by Sachin Kamat's avatar Sachin Kamat Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723au: Remove redundant casting in rtw_mlme.c



Casting value returned by k[cmz]alloc is useless.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6d488a0c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1824,8 +1824,7 @@ int rtw_set_auth23a(struct rtw_adapter * adapter,
		goto exit;
	}

	psetauthparm = (struct setauth_parm*)
		kzalloc(sizeof(struct setauth_parm), GFP_KERNEL);
	psetauthparm = kzalloc(sizeof(struct setauth_parm), GFP_KERNEL);
	if (!psetauthparm) {
		kfree(pcmd);
		res = _FAIL;
@@ -1866,7 +1865,7 @@ int rtw_set_key23a(struct rtw_adapter *adapter,
		goto exit;
	}

	pcmd = (struct cmd_obj *)kzalloc(sizeof(struct cmd_obj), GFP_KERNEL);
	pcmd = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL);
	if (!pcmd) {
		res = _FAIL;  /* try again */
		goto exit;