From d3fda9bb164da6aac9c3803d0182cc1b179e6084 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Fri, 23 Feb 2018 10:50:40 +0900 Subject: [PATCH] output: don't touch return params when failed Change-Id: Iba17eb76a47078f3bd37e338318bbcc8354a69d6 --- src/tdm_output.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/tdm_output.c b/src/tdm_output.c index 53ea938..ae4e359 100644 --- a/src/tdm_output.c +++ b/src/tdm_output.c @@ -537,20 +537,7 @@ tdm_output_get_cursor_available_size(tdm_output *output, int *min_w, int *min_h, _pthread_mutex_lock(&private_display->lock); if (!tdm_backend_check_module_abi(private_output->private_backend, 1, 5)) { - - if (min_w) - *min_w = -1; - if (min_h) - *min_h = -1; - if (max_w) - *max_w = -1; - if (max_h) - *max_h = -1; - if (preferred_align) - *preferred_align = -1; - _pthread_mutex_unlock(&private_display->lock); - return TDM_ERROR_BAD_REQUEST; } -- 2.7.4