[PATCH xf86-video-amdgpu 08/19] Simplify fd_ref handling in amdgpu_probe()
Emil Velikov
emil.l.velikov at gmail.com
Wed Apr 4 14:29:43 UTC 2018
From: Emil Velikov <emil.velikov at collabora.com>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
src/amdgpu_probe.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/amdgpu_probe.c b/src/amdgpu_probe.c
index d1ad13f..8a16060 100644
--- a/src/amdgpu_probe.c
+++ b/src/amdgpu_probe.c
@@ -237,14 +237,9 @@ amdgpu_probe(ScrnInfoPtr pScrn, int entity_num,
if (!amdgpu_device_setup(pScrn, pci_dev, dev, pPriv->ptr))
goto error;
-
- pAMDGPUEnt = pPriv->ptr;
- pAMDGPUEnt->fd_ref = 1;
-
- } else {
- pAMDGPUEnt = pPriv->ptr;
- pAMDGPUEnt->fd_ref++;
}
+ pAMDGPUEnt = pPriv->ptr;
+ pAMDGPUEnt->fd_ref++;
xf86SetEntityInstanceForScreen(pScrn, pEnt->index,
xf86GetNumEntityInstances(pEnt->
--
2.16.0
More information about the amd-gfx
mailing list