shell : remove null check of top which can't be null 26/268426/1
authordyamy-lee <dyamy.lee@samsung.com>
Wed, 22 Dec 2021 06:26:54 +0000 (15:26 +0900)
committerDaYe Lee <dyamy.lee@samsung.com>
Thu, 23 Dec 2021 01:58:32 +0000 (01:58 +0000)
Change-Id: I2d00b106e57a74644b25d6eeb03c1110d2ff7f80
(cherry picked from commit 73b5439572943398e237fc29519a289a17842868)

src/shell/shell.c

index 3b63f79..3016150 100644 (file)
@@ -1089,7 +1089,7 @@ headless_shell_cb_idle(void *data)
                if (!top_visible && pepper_surface_get_buffer(surface))
                        top_visible = view;
 
-               if (top && focus && top_visible)
+               if (focus && top_visible)
                        break;
        }