Skip to contentSkip to conversation

staging: rtl8723bs: hal: Remove unnecessary typecast in kfree.

PATCH New Nachammai Karuppiah 1 participant 1 message Nov 5, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8723bs: hal: Remove unnecessary typecast in kfree.

Remove typecast in the call to kfree as it is not needed. Issue fixed using Coccinelle.

---
 drivers/staging/rtl8723bs/hal/sdio_ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/hal/sdio_ops.c +1 -1
index 5ecd1c8..b6b4adb 100644
@@ -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);
 				}
Signature · 1 line
2.7.4