From: Emil Velikov Date: Tue, 6 Oct 2015 21:25:47 +0000 (+0100) Subject: gallium/trace: remove useless NULL check from trace_screen_create() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c751d33a2082a44bddb23ee90225be4db0da587f;p=mesa.git gallium/trace: remove useless NULL check from trace_screen_create() 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 Acked-by: Rob Clark --- diff --git a/src/gallium/drivers/trace/tr_screen.c b/src/gallium/drivers/trace/tr_screen.c index 8b02680c77e..62a51e9a94d 100644 --- a/src/gallium/drivers/trace/tr_screen.c +++ b/src/gallium/drivers/trace/tr_screen.c @@ -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;