]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
drm: xlnx: mixer: Removing dead code
authorSaurabh Sengar <saurabh.singh@xilinx.com>
Fri, 23 Feb 2018 18:35:02 +0000 (00:05 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 15 Mar 2018 14:20:40 +0000 (15:20 +0100)
Removing unnecessary loop, assigning plane's layer_data to layer_data
pointer.

Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
Reported-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/gpu/drm/xlnx/xlnx_mixer.c

index 072d32f8848e407bd1bfc0a3168da01ed68bb390..5f1379296a25f2893122cc8125375bac7fcb3e60 100644 (file)
@@ -2105,13 +2105,6 @@ static int xlnx_mix_plane_create(struct device *dev, struct xlnx_mix *mixer)
                return ret;
        }
 
-       /* Init all layers to inactive state in software. An update_plane()
-        * call to our drm driver will change this to 'active' and permit the
-        * layer to be enabled in hardware
-        */
-       for (i = 0; i < mixer_hw->layer_cnt; i++)
-               layer_data = &mixer_hw->layer_data[i];
-
        mixer->max_width = XVMIX_DISP_MAX_WIDTH;
        mixer->max_height = XVMIX_DISP_MAX_HEIGHT;
        if (mixer->hw_logo_layer) {