From: Boyeon Date: Thu, 4 Jul 2019 08:18:05 +0000 (+0900) Subject: Change parameter name for user_data and remove unnecessary return X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=apps%2Fnative%2Fsmart-ruler.git Change parameter name for user_data and remove unnecessary return Change-Id: Ice6e02127c6a5b40d90228881e0e0f9cc9bcc202 --- diff --git a/src/controller.c b/src/controller.c index 8cccf5c..ee554a0 100644 --- a/src/controller.c +++ b/src/controller.c @@ -37,9 +37,9 @@ typedef struct app_data_s { sensor_data *lidar_data; } app_data; -static Eina_Bool _lidar_value_read_cb(void *data) +static Eina_Bool _lidar_value_read_cb(void *user_data) { - app_data *ad = data; + app_data *ad = user_data; int ret = 0; unsigned int lidar_value = 0; @@ -74,9 +74,9 @@ static void service_app_control(app_control_h app_control, void *user_data) } } -static bool service_app_create(void *data) +static bool service_app_create(void *user_data) { - app_data *ad = data; + app_data *ad = user_data; ad->lidar_data = sensor_data_new(SENSOR_DATA_TYPE_UINT); retv_if(!ad->lidar_data, false); @@ -94,9 +94,9 @@ static bool service_app_create(void *data) return true; } -static void service_app_terminate(void *data) +static void service_app_terminate(void *user_data) { - app_data *ad = data; + app_data *ad = user_data; #ifdef USE_ST_SDK st_resource_destroy(); diff --git a/src/st-resource.c b/src/st-resource.c index c23c8d6..c3fc627 100644 --- a/src/st-resource.c +++ b/src/st-resource.c @@ -202,8 +202,6 @@ __data_changed_cb(sensor_data *sd, sensor_data_type_e type, void *user_data) _resource_error_to_str(err)); smartthings_payload_destroy(resp_payload); - - return; } int st_resource_destroy(void)