diff mbox

drm/amdgpu: fix boolreturn.cocci warnings

Message ID 20160801225529.GA43256@lkp-hsx03 (mailing list archive)
State New, archived
Headers show

Commit Message

Fengguang Wu Aug. 1, 2016, 10:55 p.m. UTC
drivers/gpu/drm/amd/amdgpu/si.c:1017:8-9: WARNING: return of 0/1 in function 'si_read_disabled_bios' with return type bool

 Return statements in functions returning bool should use
 true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci

CC: Ken Wang <Qingqing.Wang@amd.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 si.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

--- a/drivers/gpu/drm/amd/amdgpu/si.c
+++ b/drivers/gpu/drm/amd/amdgpu/si.c
@@ -1014,7 +1014,7 @@  static int si_read_register(struct amdgp
 
 static bool si_read_disabled_bios(struct amdgpu_device *adev)
 {
-	return 0;
+	return false;
 }
 //xxx: not implemented
 static int si_asic_reset(struct amdgpu_device *adev)