summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>2014-06-03 01:12:50 -0700
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>2014-06-17 10:15:03 +0900
commit1f107fee3b4c7d9ebe49a60630f2ce2cf330fce5 (patch)
treef34e5d53276bd72dff1c15dc3652757f8d1c641b
parent2e975507905304b93091be89e849872d3d18d478 (diff)
downloadwayland-ivi-extension-1f107fee3b4c7d9ebe49a60630f2ce2cf330fce5.tar.gz
ilmControl: Return correct value of wayland_layerRemove
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
-rw-r--r--ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c
index df688f1..0679ae7 100644
--- a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c
+++ b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c
@@ -2186,6 +2186,7 @@ wayland_layerCreateWithDimension(t_ilm_layer* pLayerId,
static ilmErrorTypes
wayland_layerRemove(t_ilm_layer layerId)
{
+ ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = get_instance();
struct layer_context *ctx_layer = NULL;
struct layer_context *ctx_next = NULL;
@@ -2199,11 +2200,12 @@ wayland_layerRemove(t_ilm_layer layerId)
wl_list_remove(&ctx_layer->link);
free(ctx_layer);
+ returnValue = ILM_SUCCESS;
break;
}
}
- return ILM_SUCCESS;
+ return returnValue;
}
static ilmErrorTypes