summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi
diff options
context:
space:
mode:
authorJulien Isorce <[email protected]>2017-03-15 17:31:40 +0000
committerJulien Isorce <[email protected]>2017-03-20 18:01:41 +0000
commitdac124466ade5ebb2f7f2e8d68351890051a20f9 (patch)
tree5b283e09e7d64c06c17763b9375590fb049a367c /src/gallium/drivers/radeonsi
parentce27b27c38acd5a92cf45e7ddc2434f2c04191ee (diff)
si_pipe: remove nullity check after dereference
sscreen cannot be NULL CID 1354483 Signed-off-by: Julien Isorce <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index a3e001c7479..277fa286416 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -684,9 +684,6 @@ static void si_destroy_screen(struct pipe_screen* pscreen)
};
unsigned i;
- if (!sscreen)
- return;
-
if (!sscreen->b.ws->unref(sscreen->b.ws))
return;