modesetting: Remove some dead code

The "if (pixmap) ..." block this commit removes is inside an
"if (pixmap == NULL) ..." block, so it will never execute.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
This commit is contained in:
Hans de Goede 2016-08-15 11:10:15 +02:00
parent dfa295b29c
commit 1075af8a6c

View File

@ -193,8 +193,6 @@ ms_dri2_create_buffer(DrawablePtr drawable, unsigned int attachment,
pixmap_cpp,
0);
if (pixmap == NULL) {
if (pixmap)
screen->DestroyPixmap(pixmap);
free(private);
free(buffer);
return NULL;