]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: coding style of amdgpu_vm_is_gpu_reset
authorChristian König <christian.koenig@amd.com>
Mon, 3 Apr 2017 11:59:25 +0000 (13:59 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Apr 2017 03:34:03 +0000 (23:34 -0400)
commitb255778d9a32e7b78b1d7b0690924dac56ba8ed5
treea4069eacffcfaefdc6e146403ea990358ef48e28
parent2c0e312fdfdc659ddfa2c4167f22604a9a0c19a1
drm/amdgpu: coding style of amdgpu_vm_is_gpu_reset

The name is a bit confusing and the extra "? true : false" is superflous.

Additional to that remove setting the reset counter directly after checking it.

Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c