[waffle] [PATCH 13/13] linux: remove 'self' NULL check

Emil Velikov emil.l.velikov at gmail.com
Mon May 16 10:57:49 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

All the callers already ensure this never happens.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 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



More information about the waffle mailing list