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: Ic11290b3643205d41f4d07807b04ad66748882b1
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
static int battery_exit(void *data)
{
- if (!data)
- return 0;
-
- free(data);
return 0;
}
static int display_exit(void *data)
{
- if (!data)
- return 0;
-
- free(data);
return 0;
}
static int external_connection_exit(void *data)
{
- if (!data)
- return 0;
-
- free(data);
return 0;
}
static int haptic_exit(void *data)
{
- if (!data)
- return -EINVAL;
-
- free(data);
return 0;
}
static int memory_exit(void *data)
{
- free(data);
return 0;
}