[RAMEN9610-12700][Common] wlbt: remove redundant free of static A-Box buffer
authorIvan Priest <i.priest@samsung.com>
Tue, 19 Feb 2019 11:47:09 +0000 (11:47 +0000)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:19 +0000 (20:23 +0300)
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 <i.priest@samsung.com>
drivers/misc/samsung/scsc_bt/scsc_bt_module.c

index b4ff3dc9052b7d01d076be70711fad47925058b8..bde380a87ca2fbbd113a2f9f322efc856462674a 100755 (executable)
@@ -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);