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

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: Remove two ! operations in an if condition

Make the code easier to understand.

Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Alex Xie and committed by
Alex Deucher
bb37b67d dd684d31

+2 -3
+2 -3
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
··· 680 680 681 681 if (amdgpu_vm_had_gpu_reset(adev, id)) 682 682 return true; 683 - if (!vm_flush_needed && !gds_switch_needed) 684 - return false; 685 - return true; 683 + 684 + return vm_flush_needed || gds_switch_needed; 686 685 } 687 686 688 687 /**