diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2018-02-14 18:20:04 +0100 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2018-02-15 17:23:49 +0100 |
commit | 16954fab59f95bdca4540c4496b2ec0759c447e9 (patch) | |
tree | 967b140687c62f3bcc629650fc80db62819b34b3 /src | |
parent | 6b44b8c584f3b63712858be11277842c97d03426 (diff) |
Call RADEONFreeRec from RADEONFreeScreen_KMS even if info == NULL
It's safe now.
(Ported from amdgpu commit c9bd1399a13cea2e1331af2c826ca054b88db071)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_kms.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 06f7883e..6e5bf781 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -2206,14 +2206,9 @@ static Bool RADEONCloseScreen_KMS(ScreenPtr pScreen) void RADEONFreeScreen_KMS(ScrnInfoPtr pScrn) { - RADEONInfoPtr info = RADEONPTR(pScrn); - xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, RADEON_LOGLEVEL_DEBUG, "RADEONFreeScreen\n"); - /* when server quits at PreInit, we don't need do this anymore*/ - if (!info) return; - RADEONFreeRec(pScrn); } |