From: Ivan Priest Date: Tue, 19 Feb 2019 11:47:09 +0000 (+0000) Subject: [RAMEN9610-12700][Common] wlbt: remove redundant free of static A-Box buffer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d8f8eb7f2f5ef4f5dcaee4aac7586bee8a02f2dc;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [RAMEN9610-12700][Common] wlbt: remove redundant free of static A-Box buffer Since the BT/A-Box ringbuffer moved to static memory, the attempt to free it from the pool returns an error. Remove the superfluous free. Change-Id: I8dd2a5274e1503ff72452d41b4ec8c8e34bae9e9 SCSC-Bug-Id: SSB-48965 Signed-off-by: Ivan Priest --- diff --git a/drivers/misc/samsung/scsc_bt/scsc_bt_module.c b/drivers/misc/samsung/scsc_bt/scsc_bt_module.c index b4ff3dc9052b..bde380a87ca2 100755 --- a/drivers/misc/samsung/scsc_bt/scsc_bt_module.c +++ b/drivers/misc/samsung/scsc_bt/scsc_bt_module.c @@ -359,12 +359,7 @@ static int slsi_sm_bt_service_cleanup(bool allow_service_stop) /* Release the shared memory */ SCSC_TAG_DEBUG(BT_COMMON, - "free memory allocated in the 4MB DRAM pool\n"); - if (bt_service.abox_ref != 0) { - scsc_mx_service_mifram_free(bt_service.service, - bt_service.abox_ref); - bt_service.abox_ref = 0; - } + "free memory allocated in the shared DRAM pool\n"); if (bt_service.config_ref != 0) { scsc_mx_service_mifram_free(bt_service.service, bt_service.config_ref); @@ -483,7 +478,7 @@ static int slsi_sm_ant_service_cleanup(bool allow_service_stop) /* Release the shared memory */ SCSC_TAG_DEBUG(BT_COMMON, - "free memory allocated in the 4MB DRAM pool\n"); + "free memory allocated in the shared DRAM pool\n"); if (ant_service.config_ref != 0) { scsc_mx_service_mifram_free(ant_service.service, ant_service.config_ref);