diff options
author | Nachammai Karuppiah <nachukannan@gmail.com> | 2019-11-05 09:06:31 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-05 18:21:21 +0100 |
commit | e1955fcdc71eb1c3572851dc0c94ff51f9fb495b (patch) | |
tree | c1d7698b3a43248c15e520269c5c962e7169bab5 /drivers/staging/rtl8723bs | |
parent | 156aafd2bec0b707dc50cffb846e43cbc8258e80 (diff) | |
download | linux-e1955fcdc71eb1c3572851dc0c94ff51f9fb495b.tar.gz linux-e1955fcdc71eb1c3572851dc0c94ff51f9fb495b.tar.bz2 linux-e1955fcdc71eb1c3572851dc0c94ff51f9fb495b.zip |
staging: rtl8723bs: hal: Remove unnecessary typecast in kfree.
Remove typecast in the call to kfree as it is not needed.
Issue fixed using Coccinelle.
Signed-off-by: Nachammai Karuppiah <nachukannan@gmail.com>
Link: https://lore.kernel.org/r/1572973591-12892-1-git-send-email-nachukannan@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs')
-rw-r--r-- | drivers/staging/rtl8723bs/hal/sdio_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/hal/sdio_ops.c b/drivers/staging/rtl8723bs/hal/sdio_ops.c index 5ecd1c873871..b6b4adb5a28a 100644 --- a/drivers/staging/rtl8723bs/hal/sdio_ops.c +++ b/drivers/staging/rtl8723bs/hal/sdio_ops.c @@ -986,7 +986,7 @@ void sd_int_dpc(struct adapter *adapter) if (c2h_id_filter_ccx_8723b((u8 *)c2h_evt)) { /* Handle CCX report here */ rtw_hal_c2h_handler(adapter, (u8 *)c2h_evt); - kfree((u8 *)c2h_evt); + kfree(c2h_evt); } else { rtw_c2h_wk_cmd(adapter, (u8 *)c2h_evt); } |