From 278ae74126ba11c906c1780f303b3245148de555 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Mon, 26 Feb 2018 15:35:53 +0900 Subject: [PATCH] server: correct syntax error Change-Id: I1fa8fa63a4acda61638a2a94b2e9023a6c75ef47 --- src/tdm_server.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tdm_server.c b/src/tdm_server.c index 968a6ed..840e575 100644 --- a/src/tdm_server.c +++ b/src/tdm_server.c @@ -486,7 +486,7 @@ _tdm_server_output_cb_get_connection(struct wl_client *client, struct wl_resourc TDM_RETURN_IF_FAIL(output_info != NULL); ret = tdm_output_get_conn_status(output_info->output, &status); - TDM_GOTO_IF_FAIL(ret != TDM_ERROR_NONE, failed); + TDM_GOTO_IF_FAIL(ret == TDM_ERROR_NONE, failed); wl_tdm_output_send_connection(output_info->resource, status, ret); @@ -506,14 +506,14 @@ _tdm_server_output_cb_get_mode(struct wl_client *client, struct wl_resource *res TDM_RETURN_IF_FAIL(output_info != NULL); ret = tdm_output_get_conn_status(output_info->output, &status); - TDM_GOTO_IF_FAIL(ret != TDM_ERROR_NONE, failed); + TDM_GOTO_IF_FAIL(ret == TDM_ERROR_NONE, failed); if (status != TDM_OUTPUT_CONN_STATUS_DISCONNECTED) { const tdm_output_mode *mode = NULL; unsigned int hdisplay, vdisplay, vrefresh; ret = tdm_output_get_mode(output_info->output, &mode); - TDM_GOTO_IF_FAIL(ret != TDM_ERROR_NONE, failed); + TDM_GOTO_IF_FAIL(ret == TDM_ERROR_NONE, failed); hdisplay = (mode) ? mode->hdisplay : 0; vdisplay = (mode) ? mode->vdisplay : 0; @@ -539,13 +539,13 @@ _tdm_server_output_cb_get_dpms(struct wl_client *client, struct wl_resource *res TDM_RETURN_IF_FAIL(output_info != NULL); ret = tdm_output_get_conn_status(output_info->output, &status); - TDM_GOTO_IF_FAIL(ret != TDM_ERROR_NONE, failed); + TDM_GOTO_IF_FAIL(ret == TDM_ERROR_NONE, failed); if (status != TDM_OUTPUT_CONN_STATUS_DISCONNECTED) { tdm_output_dpms dpms_value = TDM_OUTPUT_DPMS_OFF; ret = tdm_output_get_dpms(output_info->output, &dpms_value); - TDM_GOTO_IF_FAIL(ret != TDM_ERROR_NONE, failed); + TDM_GOTO_IF_FAIL(ret == TDM_ERROR_NONE, failed); wl_tdm_output_send_dpms(output_info->resource, dpms_value, ret); } else { -- 2.7.4