diff options
author | Wataru Natsume <WATARU_NATSUME@xddp.denso.co.jp> | 2016-03-03 19:56:09 +0900 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2016-03-04 13:35:37 +0200 |
commit | 9c926fe9f5d57ffd9f20433cbe092e3b28cf48b5 (patch) | |
tree | 9b330e446cf81a1fe56f2de64abe41f2f4ba7deb | |
parent | 161255ea49ff600a7ec71daf693ae8f105128345 (diff) | |
download | weston-9c926fe9f5d57ffd9f20433cbe092e3b28cf48b5.tar.gz weston-9c926fe9f5d57ffd9f20433cbe092e3b28cf48b5.tar.bz2 weston-9c926fe9f5d57ffd9f20433cbe092e3b28cf48b5.zip |
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 <WATARU_NATSUME@xddp.denso.co.jp>
[Pekka: rewrote commit message, removed unneeded comments.]
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-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) { |