[PATCH] drm/amdgpu: Return true/false (not 1/0) from bool functions

Haowen Bai baihaowen at meizu.com
Tue May 10 02:06:17 UTC 2022


Return boolean values ("true" or "false") instead of 1 or 0 from bool
functions.

Signed-off-by: Haowen Bai <baihaowen at meizu.com>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
index 61db2a378008..e263c870652c 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
@@ -167,7 +167,7 @@ static bool gmc_v11_0_get_atc_vmid_pasid_mapping_info(
 
 	return !!(value & ATC_VMID0_PASID_MAPPING__VALID_MASK);
 #else
-	return 0;
+	return false;
 #endif
 }
 
-- 
2.7.4



More information about the amd-gfx mailing list