drm/amdgpu: change r type to int in gmc_v9_0_late_init

Submitted by Zhou1, Tao on Sept. 3, 2019, 8:41 a.m.

Details

Message ID 20190903084125.10698-1-tao.zhou1@amd.com
State Accepted
Commit c5b6e585b23382b682653ec84152d1945408f888
Headers show
Series "drm/amdgpu: change r type to int in gmc_v9_0_late_init" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Zhou1, Tao Sept. 3, 2019, 8:41 a.m.
change r type from bool to int, suitable for both bool and int return
value

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 0fe24943d50e..f140a491a2d1 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -831,7 +831,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);

Comments

Am 03.09.19 um 10:41 schrieb Zhou1, Tao:
> 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>

> ---
>   drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> index 0fe24943d50e..f140a491a2d1 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> @@ -831,7 +831,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);