Commit f57ff0a9 authored by Wambui Karuga's avatar Wambui Karuga Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723bs: remove casts to pointers in kfree

parent bbecf7de
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2155,7 +2155,7 @@ sint rtw_set_auth(struct adapter *adapter, struct security_priv *psecuritypriv)

	psetauthparm = rtw_zmalloc(sizeof(struct setauth_parm));
	if (!psetauthparm) {
		kfree((unsigned char *)pcmd);
		kfree(pcmd);
		res = _FAIL;
		goto exit;
	}
@@ -2238,7 +2238,7 @@ sint rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, s
	if (enqueue) {
		pcmd = rtw_zmalloc(sizeof(struct cmd_obj));
		if (!pcmd) {
			kfree((unsigned char *)psetkeyparm);
			kfree(psetkeyparm);
			res = _FAIL;  /* try again */
			goto exit;
		}