Commit 6df3dab6 authored by zhengbin's avatar zhengbin Committed by Alex Deucher

drm/amdgpu: use true, false for bool variable in mxgpu_nv.c

Fixes coccicheck warning:

drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c:255:2-20: WARNING: Assignment of 0/1 to bool variable
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c:267:2-20: WARNING: Assignment of 0/1 to bool variable
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarzhengbin <zhengbin13@huawei.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent eb28038c
...@@ -252,7 +252,7 @@ static void xgpu_nv_mailbox_flr_work(struct work_struct *work) ...@@ -252,7 +252,7 @@ static void xgpu_nv_mailbox_flr_work(struct work_struct *work)
*/ */
locked = mutex_trylock(&adev->lock_reset); locked = mutex_trylock(&adev->lock_reset);
if (locked) if (locked)
adev->in_gpu_reset = 1; adev->in_gpu_reset = true;
do { do {
if (xgpu_nv_mailbox_peek_msg(adev) == IDH_FLR_NOTIFICATION_CMPL) if (xgpu_nv_mailbox_peek_msg(adev) == IDH_FLR_NOTIFICATION_CMPL)
...@@ -264,7 +264,7 @@ static void xgpu_nv_mailbox_flr_work(struct work_struct *work) ...@@ -264,7 +264,7 @@ static void xgpu_nv_mailbox_flr_work(struct work_struct *work)
flr_done: flr_done:
if (locked) { if (locked) {
adev->in_gpu_reset = 0; adev->in_gpu_reset = false;
mutex_unlock(&adev->lock_reset); mutex_unlock(&adev->lock_reset);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment