drm/amdgpu: Use ternary operator in `vcn_v1_0_start()`
authorPaul Menzel <pmenzel@molgen.mpg.de>
Tue, 15 Mar 2022 09:29:36 +0000 (10:29 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Mar 2022 19:01:12 +0000 (15:01 -0400)
commit07d01469325c87aef4ab02ad4ec31d73321665ee
treeacd859585adcd257afdc56252d3447953faee363
parent1cbd78879b5f889355b2a6343ea5db7e633438b0
drm/amdgpu: Use ternary operator in `vcn_v1_0_start()`

Remove the boilerplate of declaring a variable and using an if else
statement by using the ternary operator.

Reviewed-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c