screen_rotation: Fix init() return value 93/314993/2
authorTaeHyeon Jeong <thyeon.jeong@samsung.com>
Wed, 17 Jul 2024 03:05:53 +0000 (12:05 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Thu, 25 Jul 2024 06:14:07 +0000 (06:14 +0000)
Change-Id: Ifd7719bc58a9e2aae2e89e3e62ae94d7d1c7aafb

src/bin/server/e_screen_rotation.c

index 5e82999..42de220 100644 (file)
@@ -58,8 +58,6 @@ _tz_screen_rotation_cb_get_ignore_output_transform(struct wl_listener *listener,
    EINA_SAFETY_ON_NULL_RETURN(surface_resource);
 
    ec = e_client_from_surface_resource(surface_resource);
-   EINA_SAFETY_ON_NULL_RETURN(surface_resource);
-
 
    tzsr = E_NEW(E_Comp_Screen_Tzsr, 1);
    if (!tzsr)
@@ -85,7 +83,7 @@ e_screen_rotation_init()
    if (!screen_rotation)
      {
         ERR("Could not add tizen_screen_rotation to wayland globals");
-        return EINA_TRUE;
+        return EINA_FALSE;
      }
 
    transform.notify = _tz_screen_rotation_cb_get_ignore_output_transform;