drm/amdgpu: change r type to int in gmc_v9_0_late_init
authorTao Zhou <tao.zhou1@amd.com>
Mon, 2 Sep 2019 11:27:23 +0000 (19:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Sep 2019 22:48:51 +0000 (17:48 -0500)
change r type from bool to int, suitable for both bool and int return
value

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

index 0899fc8..2b4eb0b 100644 (file)
@@ -790,7 +790,7 @@ static int gmc_v9_0_ecc_late_init(void *handle)
 static int gmc_v9_0_late_init(void *handle)
 {
        struct amdgpu_device *adev = (struct amdgpu_device *)handle;
-       bool r;
+       int r;
 
        if (!gmc_v9_0_keep_stolen_memory(adev))
                amdgpu_bo_late_init(adev);