From: Emil Velikov <[email protected]>

All the callers already ensure this never happens.

Signed-off-by: Emil Velikov <[email protected]>
---
 src/waffle/linux/linux_platform.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/waffle/linux/linux_platform.c 
b/src/waffle/linux/linux_platform.c
index 56f6fe6..1abdbb0 100644
--- a/src/waffle/linux/linux_platform.c
+++ b/src/waffle/linux/linux_platform.c
@@ -48,9 +48,6 @@ linux_platform_destroy(struct linux_platform *self)
 {
     bool ok = true;
 
-    if (!self)
-        return true;
-
     // FIXME: Waffle is unable to emit a sequence of errors.
     ok &= linux_dl_close(self->libgl);
     ok &= linux_dl_close(self->libgles1);
-- 
2.6.2

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

Reply via email to