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_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: 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
6df3dab6 eb28038c

+2 -2
+2 -2
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c
··· 252 252 */ 253 253 locked = mutex_trylock(&adev->lock_reset); 254 254 if (locked) 255 - adev->in_gpu_reset = 1; 255 + adev->in_gpu_reset = true; 256 256 257 257 do { 258 258 if (xgpu_nv_mailbox_peek_msg(adev) == IDH_FLR_NOTIFICATION_CMPL) ··· 264 264 265 265 flr_done: 266 266 if (locked) { 267 - adev->in_gpu_reset = 0; 267 + adev->in_gpu_reset = false; 268 268 mutex_unlock(&adev->lock_reset); 269 269 } 270 270