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)
commit641e94008970ef7dba764a3c672ec8bd40b9a533
treea4069eacffcfaefdc6e146403ea990358ef48e28
parent6332ab906aa21ebeec710f3c14025b7af425d0f2
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