From: Wataru Natsume Date: Thu, 3 Mar 2016 10:56:09 +0000 (+0900) Subject: remove warning of ivisurface reassign on the ivilayer X-Git-Tag: upstream/5.0.0~1243 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c926fe9f5d57ffd9f20433cbe092e3b28cf48b5;p=platform%2Fupstream%2Fweston.git remove warning of ivisurface reassign on the ivilayer The warning of ivisurface reassign can be removed. It is ok to reassign a surface to a layer it is already on. The warning started to show up during normal operations since patch "hmi-controller: remove duplicate commit_changes in random mode". Signed-off-by: Wataru Natsume [Pekka: rewrote commit message, removed unneeded comments.] Signed-off-by: Pekka Paalanen --- diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c index f7c4f27..fe7b497 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) {