screen_rotation: Fix code to fit coding convention 94/314994/2
authorTaeHyeon Jeong <thyeon.jeong@samsung.com>
Wed, 17 Jul 2024 04:59:34 +0000 (13:59 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Thu, 25 Jul 2024 06:14:15 +0000 (06:14 +0000)
Change-Id: I9c2ac0b11e0d9c829a7d8b141c47fadb9b906027

src/bin/server/e_screen_rotation.c

index 42de220..6827ace 100644 (file)
@@ -18,9 +18,9 @@ static E_Comp_Screen_Tzsr*
 _tz_surface_rotation_find(E_Client *ec)
 {
    E_Comp_Screen_Tzsr *tzsr;
-   Eina_List *l, *ll;
+   Eina_List *l;
 
-   EINA_LIST_FOREACH_SAFE(tzsr_list, l, ll, tzsr)
+   EINA_LIST_FOREACH(tzsr_list, l, tzsr)
      {
         if (tzsr->ec == ec)
           return tzsr;
@@ -78,8 +78,8 @@ EINTERN Eina_Bool
 e_screen_rotation_init()
 {
    struct ds_tizen_screen_rotation *screen_rotation;
-   screen_rotation = ds_tizen_screen_rotation_create(e_comp_wl->wl.disp);
 
+   screen_rotation = ds_tizen_screen_rotation_create(e_comp_wl->wl.disp);
    if (!screen_rotation)
      {
         ERR("Could not add tizen_screen_rotation to wayland globals");
@@ -101,6 +101,7 @@ EINTERN void
 e_screen_rotation_ignore_output_transform_send(E_Client *ec, Eina_Bool ignore)
 {
    E_Comp_Screen_Tzsr *tzsr;
+   
    tzsr = _tz_surface_rotation_find(ec);
    EINA_SAFETY_ON_NULL_RETURN(tzsr);