From f6ba674cd8ada4e018fd205dab2e877e9a19a820 Mon Sep 17 00:00:00 2001 From: YeongJong Lee Date: Wed, 24 Jan 2018 15:36:08 +0900 Subject: [PATCH] efl_ui_win: Avoid a call to NULL Summary: parent_get and smart_parent_get are called in parent_widget_get this also remove the duplicated code Reviewers: jpeg Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5757 --- src/lib/elementary/efl_ui_win.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index fd2eea0427..38be004df3 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -2603,16 +2603,8 @@ _elm_win_focus_target_get(Evas_Object *obj) { if (!elm_widget_highlight_ignore_get(o)) break; - o = elm_widget_parent_get(o); - if (!o) - o = evas_object_smart_parent_get(o); - } - else - { - o = elm_widget_parent_widget_get(o); - if (!o) - o = evas_object_smart_parent_get(o); } + o = elm_widget_parent_widget_get(o); } while (o);