drm/amdgpu: correct coding style
authorjimqu <Jim.Qu@amd.com>
Tue, 19 Jul 2016 06:58:02 +0000 (14:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Jul 2016 18:36:58 +0000 (14:36 -0400)
Signed-off-by: JimQu <Jim.Qu@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c

index d7b8da433fe29505b242e3fa81c0694b3f43fd80..559209bb00834ff5afd491651fd0b681bc9fca7b 100644 (file)
@@ -210,11 +210,11 @@ static void vce_v3_0_set_vce_sw_clock_gating(struct amdgpu_device *adev,
 static int vce_v3_0_firmware_loaded(struct amdgpu_device *adev)
 {
        int i, j;
-       uint32_t status = 0;
 
        for (i = 0; i < 10; ++i) {
                for (j = 0; j < 100; ++j) {
-                       status = RREG32(mmVCE_STATUS);
+                       uint32_t status = RREG32(mmVCE_STATUS);
+
                        if (status & VCE_STATUS_VCPU_REPORT_FW_LOADED_MASK)
                                return 0;
                        mdelay(10);