summaryrefslogtreecommitdiff
path: root/hw/xfree86/drivers
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-08-15 11:10:15 +0200
committerHans de Goede <hdegoede@redhat.com>2016-09-13 10:26:32 +0200
commit1075af8a6c26009c04db30a6d6d1f10070568ab1 (patch)
treef377126fbc07265aab369eacc5a5c94d8f1f1bb9 /hw/xfree86/drivers
parentdfa295b29c20b174f80ab823eef41e5211a6a921 (diff)
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>
Diffstat (limited to 'hw/xfree86/drivers')
-rw-r--r--hw/xfree86/drivers/modesetting/dri2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/xfree86/drivers/modesetting/dri2.c b/hw/xfree86/drivers/modesetting/dri2.c
index 65f2ecf29..cbef2e64a 100644
--- a/hw/xfree86/drivers/modesetting/dri2.c
+++ b/hw/xfree86/drivers/modesetting/dri2.c
@@ -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;