kmsdrm: No need to test for display driverdata when freeing a plane.

This commit is contained in:
Manuel Alfayate Corchete 2020-09-08 02:42:32 +02:00
parent 6e03fab982
commit 550e153365
1 changed files with 1 additions and 3 deletions

View File

@ -576,9 +576,7 @@ cleanup:
void
free_plane(struct plane **plane)
{
SDL_DisplayData *dispdata = (SDL_DisplayData *)SDL_GetDisplayDriverData(0);
if (dispdata && (*plane)) {
if (*plane) {
if ((*plane)->plane) {
KMSDRM_drmModeFreePlane((*plane)->plane);
(*plane)->plane = NULL;