From: Sumera Priyadarsini Date: Mon, 26 Oct 2020 18:12:42 +0000 (+0530) Subject: drm/amdgpu: use true and false for bool initialisations X-Git-Tag: accepted/tizen/unified/20230118.172025~8358^2~12^2~173 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=44ea03e17ef5ca4a5f527ffbb26c57d16758bac9;p=platform%2Fkernel%2Flinux-rpi.git drm/amdgpu: use true and false for bool initialisations Bool initialisation should use 'true' and 'false' values instead of 0 and 1. Modify amdgpu_amdkfd_gpuvm.c to initialise variable is_imported to false instead of 0. Issue found with Coccinelle. Signed-off-by: Sumera Priyadarsini Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c index c21f82c..4324479 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c @@ -1287,7 +1287,7 @@ int amdgpu_amdkfd_gpuvm_free_memory_of_gpu( struct ttm_validate_buffer *bo_list_entry; unsigned int mapped_to_gpu_memory; int ret; - bool is_imported = 0; + bool is_imported = false; mutex_lock(&mem->lock); mapped_to_gpu_memory = mem->mapped_to_gpu_memory;