mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
Revert "Guard against pAMDGPUEnt == NULL in AMDGPUFreeRec"
This reverts commit a23d1ff700.
pAMDGPUEnt cannot be NULL anymore here now that we no longer call
AMDGPUFreeRec directly from AMDGPUPreInit_KMS.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
103b728584
commit
63b0c73a99
@@ -137,7 +137,7 @@ static void AMDGPUFreeRec(ScrnInfoPtr pScrn)
|
||||
|
||||
pPriv = xf86GetEntityPrivate(pEnt->index, gAMDGPUEntityIndex);
|
||||
pAMDGPUEnt = pPriv->ptr;
|
||||
if (pAMDGPUEnt && pAMDGPUEnt->fd > 0) {
|
||||
if (pAMDGPUEnt->fd > 0) {
|
||||
DevUnion *pPriv;
|
||||
AMDGPUEntPtr pAMDGPUEnt;
|
||||
pPriv = xf86GetEntityPrivate(pScrn->entityList[0],
|
||||
|
||||
Reference in New Issue
Block a user