diff options
author | Marcus Fritzsch <marcus.fritzsch@xse.de> | 2014-07-30 17:16:02 +0200 |
---|---|---|
committer | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp> | 2014-08-12 22:15:15 +0900 |
commit | 1d2bd51e3827549e424d96f356f5acfdf953af4d (patch) | |
tree | 732e905f9f3d388e73377adc73b0e3f8eeca3ae9 | |
parent | 05cdeded5c194e38a7dbb02eeb97d7eb13e38127 (diff) | |
download | wayland-ivi-extension-1d2bd51e3827549e424d96f356f5acfdf953af4d.tar.gz |
ilmClient: remove double-loop without purpose
Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
-rw-r--r-- | ivi-layermanagement-api/ilmClient/src/ilm_client_wayland_platform.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ivi-layermanagement-api/ilmClient/src/ilm_client_wayland_platform.c b/ivi-layermanagement-api/ilmClient/src/ilm_client_wayland_platform.c index 1476d3c..87ba8d6 100644 --- a/ivi-layermanagement-api/ilmClient/src/ilm_client_wayland_platform.c +++ b/ivi-layermanagement-api/ilmClient/src/ilm_client_wayland_platform.c @@ -365,18 +365,12 @@ get_surface_context_by_id(struct ilm_client_context *ctx, { struct surface_context *ctx_surf = NULL; - /* At first, search cached list */ wl_list_for_each(ctx_surf, &ctx->list_surface, link) { if (ctx_surf->id_surface == id_surface) { return ctx_surf; } } - wl_list_for_each(ctx_surf, &ctx->list_surface, link) { - if (ctx_surf->id_surface == id_surface) { - return ctx_surf; - } - } return NULL; } |