summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-03-21 09:41:37 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-03-21 09:41:37 +0000
commitd6938517352a49d61af7fea437ee011aee95cfea (patch)
tree720fef0e9e25ff7cb25b149b23a81f875779f871 /sys/dev
parent3e53e09e90e687016d50909112b2ad78c69b85d2 (diff)
drm/amd/display: remove duplicated assignment to grph_obj_type
From Colin Ian King bef7177cefad180b9776ed49290d42bfb873da1e in linux 4.19.y/4.19.111 d785476c608c621b345dd9396e8b21e90375cb0e in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
index 39539465054..c30899b9898 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
@@ -364,8 +364,7 @@ bool amdgpu_atombios_get_connector_info_from_object_table(struct amdgpu_device *
router.ddc_valid = false;
router.cd_valid = false;
for (j = 0; j < ((le16_to_cpu(path->usSize) - 8) / 2); j++) {
- uint8_t grph_obj_type=
- grph_obj_type =
+ uint8_t grph_obj_type =
(le16_to_cpu(path->usGraphicObjIds[j]) &
OBJECT_TYPE_MASK) >> OBJECT_TYPE_SHIFT;