From d6ada65f4863702f6d7d5c1080b408e332fb8923 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Mon, 9 Apr 2018 21:15:59 +0900 Subject: [PATCH] common: remove unuseful condition output_get_capability can't be null at this function. checking null is already done in other function. Change-Id: I737ab197eba4763cc6afbfd65d8b8e8183c4a122 --- src/tdm.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/tdm.c b/src/tdm.c index 08a9136f..be3d0bf9 100644 --- a/src/tdm.c +++ b/src/tdm.c @@ -528,11 +528,6 @@ _tdm_display_get_ordered_outputs(tdm_private_module *private_module, int *count) tdm_caps_output caps; memset(&caps, 0, sizeof(tdm_caps_output)); - if (!func_output->output_get_capability) { - TDM_ERR("no output_get_capability()"); - goto failed_get_outputs; - } - ret = func_output->output_get_capability(outputs[i], &caps); if (ret != TDM_ERROR_NONE) { TDM_ERR("output_get_capability() failed"); -- 2.34.1