hwc: fix coding rule 15/204715/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Fri, 26 Apr 2019 02:21:10 +0000 (11:21 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Fri, 26 Apr 2019 02:21:10 +0000 (11:21 +0900)
Change-Id: I55e1e4ab664a0fca008094f3c6f72e06194c23ed

src/tdm_exynos_hwc.c

index c039780fa635be824d0b2e01101610d878205056..e2ab98704696ea0d80547cadcfbe2d9e6726a39f 100644 (file)
@@ -239,21 +239,21 @@ _exynos_hwc_apply_policy(tdm_exynos_hwc_data *hwc_data , tdm_hwc_window **compos
        /* 1. first check validate_type without target_window */
        for (i = 0; i < num_wnds; i++) {
                switch (composited_list[i]->client_type) {
-                       case TDM_HWC_WIN_COMPOSITION_VIDEO:
-                               composited_list[i]->validated_type = TDM_HWC_WIN_COMPOSITION_VIDEO;
-                               video_count++;
-                               continue;
-                       case TDM_HWC_WIN_COMPOSITION_DEVICE:
-                               if (set_clients_below) break;
-                               if (num_ui_layers <= 0) break;
-                               if (!_exynos_hwc_window_can_set_on_hw_layer(composited_list[i])) break;
-
-                               composited_list[i]->validated_type = TDM_HWC_WIN_COMPOSITION_DEVICE;
-                               device_count++;
-                               num_ui_layers--;
-                               continue;
-                       default:
-                               break;
+               case TDM_HWC_WIN_COMPOSITION_VIDEO:
+                       composited_list[i]->validated_type = TDM_HWC_WIN_COMPOSITION_VIDEO;
+                       video_count++;
+                       continue;
+               case TDM_HWC_WIN_COMPOSITION_DEVICE:
+                       if (set_clients_below) break;
+                       if (num_ui_layers <= 0) break;
+                       if (!_exynos_hwc_window_can_set_on_hw_layer(composited_list[i])) break;
+
+                       composited_list[i]->validated_type = TDM_HWC_WIN_COMPOSITION_DEVICE;
+                       device_count++;
+                       num_ui_layers--;
+                       continue;
+               default:
+                       break;
                }
 
                composited_list[i]->validated_type = TDM_HWC_WIN_COMPOSITION_CLIENT;
@@ -282,17 +282,17 @@ _exynos_hwc_apply_policy(tdm_exynos_hwc_data *hwc_data , tdm_hwc_window **compos
        /* 3. set lzpos and modify validate_type with target_window */
        for (i = 0; i < num_wnds; i++) {
                switch (composited_list[i]->validated_type) {
-                       case TDM_HWC_WIN_COMPOSITION_VIDEO:
-                               composited_list[i]->lzpos = ZPOS_VIDEO1;
-                               continue;
-                       case TDM_HWC_WIN_COMPOSITION_DEVICE:
-                               if (num_ui_layers <= 0) break;
-                               composited_list[i]->lzpos = ui_lzpos_top;
-                               ui_lzpos_top--;
-                               num_ui_layers--;
-                               continue;
-                       default:
-                               break;
+               case TDM_HWC_WIN_COMPOSITION_VIDEO:
+                       composited_list[i]->lzpos = ZPOS_VIDEO1;
+                       continue;
+               case TDM_HWC_WIN_COMPOSITION_DEVICE:
+                       if (num_ui_layers <= 0) break;
+                       composited_list[i]->lzpos = ui_lzpos_top;
+                       ui_lzpos_top--;
+                       num_ui_layers--;
+                       continue;
+               default:
+                       break;
                }
 
                composited_list[i]->validated_type = TDM_HWC_WIN_COMPOSITION_CLIENT;