ilmControl: Return correct value of wayland_layerRemove
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Tue, 3 Jun 2014 08:12:50 +0000 (01:12 -0700)
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Tue, 17 Jun 2014 01:15:03 +0000 (10:15 +0900)
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c

index df688f1..0679ae7 100644 (file)
@@ -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