diff options
author | Wambui Karuga <wambui.karugax@gmail.com> | 2019-10-15 14:26:37 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-15 18:35:01 +0200 |
commit | f57ff0a9b806ebce507e699e4a4ee2c6f06178fc (patch) | |
tree | a3a53bc5916d65079de97442949221f509b5458c /drivers/staging/rtl8723bs | |
parent | bbecf7de097690af75d9a292a6ac1316092a7389 (diff) | |
download | linux-f57ff0a9b806ebce507e699e4a4ee2c6f06178fc.tar.bz2 |
staging: rtl8723bs: remove casts to pointers in kfree
Remove unnecessary casts in pointer types passed to kfree.
Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Link: https://lore.kernel.org/r/20191015112637.20824-1-wambui.karugax@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs')
-rw-r--r-- | drivers/staging/rtl8723bs/core/rtw_mlme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c index 3030ae5b6b6d..71fcb466019a 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c @@ -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; } |