amdgpu/dc: fix more indentation warnings
authorErnst Sjöstrand <ernstp@gmail.com>
Tue, 7 Nov 2017 20:06:57 +0000 (21:06 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Nov 2017 21:22:15 +0000 (16:22 -0500)
More "warn: inconsistent indenting" fixes from smatch.

Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Ernst Sjöstrand <ernstp@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/i2caux/dce110/aux_engine_dce110.c

index 75f9383f5b9be6f93fa711ea4f5f41754528ee51..ad98885222e690cddeca3ee11dbdd9ce2faee0bd 100644 (file)
@@ -517,7 +517,7 @@ static int detect_mst_link_for_all_connectors(struct drm_device *dev)
        drm_modeset_lock(&dev->mode_config.connection_mutex, NULL);
 
        list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
-                  aconnector = to_amdgpu_dm_connector(connector);
+               aconnector = to_amdgpu_dm_connector(connector);
                if (aconnector->dc_link->type == dc_connection_mst_branch) {
                        DRM_DEBUG_DRIVER("DM_MST: starting TM on aconnector: %p [id: %d]\n",
                                        aconnector, aconnector->base.base.id);
@@ -4712,10 +4712,10 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
                goto fail;
        }
 
-        /* Run this here since we want to validate the streams we created */
-        ret = drm_atomic_helper_check_planes(dev, state);
-        if (ret)
-                goto fail;
+       /* Run this here since we want to validate the streams we created */
+       ret = drm_atomic_helper_check_planes(dev, state);
+       if (ret)
+               goto fail;
 
        /* Check scaling and underscan changes*/
        /*TODO Removed scaling changes validation due to inability to commit
index 0c4bbc10510d0ab2facb3e84fb47982229581e75..81f9f3e34c10161a44774a46faa66e5cf811155f 100644 (file)
@@ -318,7 +318,7 @@ static void process_channel_reply(
                                REG_GET(AUX_SW_DATA,
                                                AUX_SW_DATA, &aux_sw_data_val);
 
-                                reply->data[i] = aux_sw_data_val;
+                               reply->data[i] = aux_sw_data_val;
                                ++i;
                        }