drm/amd/display: remove duplicated assignment to grph_obj_type
authorColin Ian King <colin.king@canonical.com>
Fri, 8 Nov 2019 14:45:27 +0000 (14:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 06:17:50 +0000 (07:17 +0100)
commit40c4ad7f1b156526aec224404eec5ed870bb0b3f
tree2c385d9095106fa2c5c9176e07d27bacdfcb8366
parent22540ca3d00d2990a4148a13b92209c3dc5422db
drm/amd/display: remove duplicated assignment to grph_obj_type

commit d785476c608c621b345dd9396e8b21e90375cb0e upstream.

Variable grph_obj_type is being assigned twice, one of these is
redundant so remove it.

Addresses-Coverity: ("Evaluation order violation")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c