Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Fixes coccicheck warning:

drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c:253:2-20: WARNING: Assignment of 0/1 to bool variable
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c:265:2-20: WARNING: Assignment of 0/1 to bool variable

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

zhengbin and committed by
Alex Deucher
eb28038c ab2c1ea4

+2 -2
+2 -2
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
··· 250 250 */ 251 251 locked = mutex_trylock(&adev->lock_reset); 252 252 if (locked) 253 - adev->in_gpu_reset = 1; 253 + adev->in_gpu_reset = true; 254 254 255 255 do { 256 256 if (xgpu_ai_mailbox_peek_msg(adev) == IDH_FLR_NOTIFICATION_CMPL) ··· 262 262 263 263 flr_done: 264 264 if (locked) { 265 - adev->in_gpu_reset = 0; 265 + adev->in_gpu_reset = false; 266 266 mutex_unlock(&adev->lock_reset); 267 267 } 268 268