e_hwc_window: Make sure return an instance of hwc_window properly. 55/196155/1
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 24 Dec 2018 04:41:33 +0000 (13:41 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Mon, 24 Dec 2018 04:41:33 +0000 (13:41 +0900)
Change-Id: I34943ca8bb34d37470d0f497b6e1c53ec6857036

src/bin/e_hwc_window.c

index 251764d..3e60c5c 100644 (file)
@@ -603,7 +603,7 @@ e_hwc_window_new(E_Hwc *hwc, E_Client *ec, E_Hwc_Window_State state)
         if (e_hwc_window_state_get(ec->hwc_window) != state)
           e_hwc_window_state_set(ec->hwc_window, state, EINA_FALSE);
 
-        goto end;
+        return ec->hwc_window;
      }
 
    thwc = hwc->thwc;
@@ -642,7 +642,6 @@ e_hwc_window_new(E_Hwc *hwc, E_Client *ec, E_Hwc_Window_State state)
           hwc_window->ec, hwc_window, hwc->output, ec->zone->id,
           hwc_window->is_video, hwc_window->is_cursor);
 
-end:
    return hwc_window;
 }