Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
struct ivisurface *ivisurf = NULL;
struct ivicontroller_surface *ctrl_link = NULL;
struct ivisurface *ivisurf = NULL;
struct ivicontroller_surface *ctrl_link = NULL;
+ ivisurf = get_surface(&shell->list_surface, id_surface);
+ if (ivisurf == NULL) {
+ return;
+ }
+
ctrlsurf = calloc(1, sizeof *ctrlsurf);
if (!ctrlsurf) {
weston_log("no memory to allocate controller surface\n");
ctrlsurf = calloc(1, sizeof *ctrlsurf);
if (!ctrlsurf) {
weston_log("no memory to allocate controller surface\n");
- ivisurf = get_surface(&shell->list_surface, id_surface);
- if (ivisurf == NULL) {
- return;
- }
-
wl_list_for_each(ctrl_link, &shell->list_controller_surface, link) {
if ((ctrl_link->implementation_set == 0) &&
(ctrl_link->id_surface == id_surface) &&
wl_list_for_each(ctrl_link, &shell->list_controller_surface, link) {
if ((ctrl_link->implementation_set == 0) &&
(ctrl_link->id_surface == id_surface) &&