Skip to contentSkip to conversation

Revert "Guard against pAMDGPUEnt == NULL in AMDGPUFreeRec"

PATCH In review Michel Dänzer 2 participants 2 messages Feb 14, 2018 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "Guard against pAMDGPUEnt == NULL in AMDGPUFreeRec"

From: Michel Dänzer <[email protected]>

This reverts commit a23d1ff700d486138c624c2023d8d251c73709af.

pAMDGPUEnt cannot be NULL anymore here now that we no longer call AMDGPUFreeRec directly from AMDGPUPreInit_KMS.

---
 src/amdgpu_kms.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/amdgpu_kms.c +1 -1
index f5874d3af..15adb2938 100644
@@ -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],
Signature · 6 lines
2.16.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20180214180849.6069-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org

Reviewed-by
#2 lore raw
Quoted 8 lines · Michel Dänzer

From: Michel Dänzer <[email protected]>

This reverts commit a23d1ff700d486138c624c2023d8d251c73709af.

pAMDGPUEnt cannot be NULL anymore here now that we no longer call AMDGPUFreeRec directly from AMDGPUPreInit_KMS.

Quoted 20 lines
---
 src/amdgpu_kms.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/amdgpu_kms.c +1 -2
index f5874d3af..15adb2938 100644
@@ -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],
--

2.16.1

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx