From 3bf98d8cee5f7abf33073b1590b39c9aa6773a7c Mon Sep 17 00:00:00 2001 From: Boram Park Date: Thu, 18 Jan 2018 09:50:54 +0900 Subject: [PATCH] output: remove unused params Change-Id: Id92aa4041890a16d87e564800dbc017c50701554 --- src/tdm_output.c | 17 ++++++++--------- src/tdm_private.h | 3 +-- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/tdm_output.c b/src/tdm_output.c index 54ad8dc..918940d 100644 --- a/src/tdm_output.c +++ b/src/tdm_output.c @@ -234,7 +234,7 @@ tdm_output_cb_status(tdm_output *output_backend, tdm_output_conn_status status, tdm_output_call_change_handler_internal(private_output, &private_output->change_handler_list_sub, TDM_OUTPUT_CHANGE_CONNECTION, - value, 0); + value); ret = tdm_thread_send_cb(private_display->private_loop, &output_status.base); TDM_WARNING_IF_FAIL(ret == TDM_ERROR_NONE); @@ -252,7 +252,7 @@ tdm_output_cb_status(tdm_output *output_backend, tdm_output_conn_status status, tdm_output_call_change_handler_internal(private_output, &private_output->change_handler_list_main, TDM_OUTPUT_CHANGE_CONNECTION, - value, 0); + value); } /* LCOV_EXCL_STOP */ @@ -1179,7 +1179,7 @@ _tdm_output_dpms_changed_timeout(void *user_data) tdm_output_call_change_handler_internal(private_output, &private_output->change_handler_list_sub, TDM_OUTPUT_CHANGE_DPMS, - value, 0); + value); return TDM_ERROR_NONE; } @@ -1212,7 +1212,7 @@ tdm_output_call_dpms_change_handler(tdm_output *output) tdm_output_call_change_handler_internal(private_output, &private_output->change_handler_list_main, TDM_OUTPUT_CHANGE_DPMS, - value, 0); + value); if (!LIST_IS_EMPTY(&private_output->change_handler_list_sub)) { tdm_error ret = tdm_event_loop_source_timer_update(private_output->dpms_changed_timer, 1); @@ -1252,7 +1252,7 @@ tdm_output_cb_dpms(tdm_output *output_backend, tdm_output_dpms dpms, void *user_ tdm_output_call_change_handler_internal(private_output, &private_output->change_handler_list_sub, TDM_OUTPUT_CHANGE_DPMS, - value, 0); + value); ret = tdm_thread_send_cb(private_display->private_loop, &output_dpms.base); TDM_WARNING_IF_FAIL(ret == TDM_ERROR_NONE); @@ -1269,7 +1269,7 @@ tdm_output_cb_dpms(tdm_output *output_backend, tdm_output_dpms dpms, void *user_ tdm_output_call_change_handler_internal(private_output, &private_output->change_handler_list_main, TDM_OUTPUT_CHANGE_DPMS, - value, 0); + value); } /* LCOV_EXCL_STOP */ @@ -2021,8 +2021,7 @@ INTERN void tdm_output_call_change_handler_internal(tdm_private_output *private_output, struct list_head *change_handler_list, tdm_output_change_type type, - tdm_value value, - int no_check_thread_id) + tdm_value value) { tdm_private_display *private_display; tdm_private_change_handler *change_handler = NULL; @@ -2044,7 +2043,7 @@ tdm_output_call_change_handler_internal(tdm_private_output *private_output, return; LIST_FOR_EACH_ENTRY(change_handler, change_handler_list, link) { - if (!no_check_thread_id && change_handler->owner_tid != syscall(SYS_gettid)) + if (change_handler->owner_tid != syscall(SYS_gettid)) TDM_NEVER_GET_HERE(); _pthread_mutex_unlock(&private_display->lock); diff --git a/src/tdm_private.h b/src/tdm_private.h index 0424dd2..5a07b89 100644 --- a/src/tdm_private.h +++ b/src/tdm_private.h @@ -176,8 +176,7 @@ void tdm_output_call_change_handler_internal(tdm_private_output *private_output, struct list_head *change_handler_list, tdm_output_change_type type, - tdm_value value, - int no_check_thread_id); + tdm_value value); tdm_private_pp * tdm_pp_create_internal(tdm_private_display *private_display, tdm_error *error); -- 2.7.4