diff options
author | Yunhee Seo <yuni.seo@samsung.com> | 2024-04-24 17:22:42 +0900 |
---|---|---|
committer | Yunhee Seo <yuni.seo@samsung.com> | 2024-04-24 17:22:42 +0900 |
commit | 7342f959728d1e502ade2b176f10aa277f903c0a (patch) | |
tree | 1c90f4524685dfe1eb48075a1f01df7b153533bd | |
parent | d11e00075296691fcb691f1e307ada8fa18ef325 (diff) | |
download | device-vim3-7342f959728d1e502ade2b176f10aa277f903c0a.tar.gz device-vim3-7342f959728d1e502ade2b176f10aa277f903c0a.tar.bz2 device-vim3-7342f959728d1e502ade2b176f10aa277f903c0a.zip |
Remove free data section when the module exitsaccepted/tizen/unified/dev/20240620.010526accepted/tizen/unified/20240614.085003
In the hal backend module, when the moudle exits, the hal_backend_[module]_funcs was
handled from [module]_exit function.
The data parameter is handed over from hal-api-common put_backend function.
And data is pointing to hal_backend_[module]_funcs, and free by hal-backend module.
As memory release operation moves to the hal-api-device side,
also double free operation is useless, thus it is deleted from hal-backend.
Change-Id: I43d1043df40cad6ddf97569f13ede1f2b2afd184
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
-rw-r--r-- | hw/board/board.c | 4 | ||||
-rw-r--r-- | hw/display/display.c | 4 | ||||
-rw-r--r-- | hw/haptic/gpio.c | 4 | ||||
-rw-r--r-- | hw/memory/memory.c | 1 | ||||
-rw-r--r-- | hw/thermal/thermal.c | 4 | ||||
-rw-r--r-- | hw/touchscreen/touchscreen.c | 4 |
6 files changed, 0 insertions, 21 deletions
diff --git a/hw/board/board.c b/hw/board/board.c index 4f6dcc8..22d4136 100644 --- a/hw/board/board.c +++ b/hw/board/board.c @@ -118,10 +118,6 @@ static int board_init(void **data) static int board_exit(void *data) { - if (!data) - return 0; - - free(data); return 0; } diff --git a/hw/display/display.c b/hw/display/display.c index 56a4965..78f5d39 100644 --- a/hw/display/display.c +++ b/hw/display/display.c @@ -128,10 +128,6 @@ static int display_init(void **data) static int display_exit(void *data) { - if (!data) - return 0; - - free(data); return 0; } diff --git a/hw/haptic/gpio.c b/hw/haptic/gpio.c index cd2a295..bd9f4ed 100644 --- a/hw/haptic/gpio.c +++ b/hw/haptic/gpio.c @@ -338,10 +338,6 @@ static int haptic_init(void **data) static int haptic_exit(void *data) { - if (!data) - return -EINVAL; - - free(data); return 0; } diff --git a/hw/memory/memory.c b/hw/memory/memory.c index ae4aed0..a096337 100644 --- a/hw/memory/memory.c +++ b/hw/memory/memory.c @@ -104,7 +104,6 @@ static int memory_init(void **data) static int memory_exit(void *data) { - free(data); return 0; } diff --git a/hw/thermal/thermal.c b/hw/thermal/thermal.c index 72628b5..14c9c1d 100644 --- a/hw/thermal/thermal.c +++ b/hw/thermal/thermal.c @@ -136,10 +136,6 @@ static int thermal_init(void **data) static int thermal_exit(void *data) { - if (!data) - return 0; - - free(data); return 0; } diff --git a/hw/touchscreen/touchscreen.c b/hw/touchscreen/touchscreen.c index c86bc32..6af8754 100644 --- a/hw/touchscreen/touchscreen.c +++ b/hw/touchscreen/touchscreen.c @@ -109,10 +109,6 @@ static int touchscreen_init(void **data) static int touchscreen_exit(void *data) { - if (!data) - return 0; - - free(data); return 0; } |