diff options
-rw-r--r-- | ivi-shell/ivi-layout.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c index f7c4f273..fe7b4971 100644 --- a/ivi-shell/ivi-layout.c +++ b/ivi-shell/ivi-layout.c @@ -2417,10 +2417,8 @@ ivi_layout_layer_add_surface(struct ivi_layout_layer *ivilayer, return IVI_FAILED; } - if (addsurf->on_layer == ivilayer) { - weston_log("ivi_layout_layer_add_surface: addsurf is already available\n"); + if (addsurf->on_layer == ivilayer) return IVI_SUCCEEDED; - } wl_list_for_each_safe(ivisurf, next, &layout->surface_list, link) { if (ivisurf->id_surface == addsurf->id_surface) { |