diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2015-10-06 22:25:47 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-11-21 12:52:17 +0000 |
commit | c751d33a2082a44bddb23ee90225be4db0da587f (patch) | |
tree | 5e14c67e674b54d47c8607b4492304343bf450ff /src/gallium | |
parent | e762a46a074c2e95c0d4bf1765cb16044c1d0d9e (diff) |
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 <emil.l.velikov@gmail.com>
Acked-by: Rob Clark <robclark@freedesktop.org>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/trace/tr_screen.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gallium/drivers/trace/tr_screen.c b/src/gallium/drivers/trace/tr_screen.c index 8b02680c77..62a51e9a94 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; |