drm/amd/display: Fix brace style in amdgpu_dm_initialize_drm_device()
authorTom St Denis <tom.stdenis@amd.com>
Tue, 17 Oct 2017 13:09:42 +0000 (09:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:53:26 +0000 (16:53 -0400)
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Acked-by: Andrey Grodzovsky <andey.grodzovsky@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index bb83da6..fb24ba6 100644 (file)
@@ -1412,9 +1412,8 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)
                        goto fail_free_planes;
 
                aencoder = kzalloc(sizeof(*aencoder), GFP_KERNEL);
-               if (!aencoder) {
+               if (!aencoder)
                        goto fail_free_connector;
-               }
 
                if (amdgpu_dm_encoder_init(dm->ddev, aencoder, i)) {
                        DRM_ERROR("KMS: Failed to initialize encoder\n");