gallium/trace: remove useless NULL check from trace_screen_create()
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 6 Oct 2015 21:25:47 +0000 (22:25 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 21 Nov 2015 12:52:17 +0000 (12:52 +0000)
Currently every target makes sure that the screen is non-null prior to
using the debug (trace including) wrappers. If that no longer holds true
we want to know and fix this ASAP rather than silently bailing out.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/trace/tr_screen.c

index 8b02680c77e0c97228aeb592c06c3f81b8dcf306..62a51e9a94dc649c4ff66b3922444e15410e7acd 100644 (file)
@@ -456,9 +456,6 @@ trace_screen_create(struct pipe_screen *screen)
 {
    struct trace_screen *tr_scr;
 
-   if(!screen)
-      goto error1;
-
    if (!trace_enabled())
       goto error1;