From dac124466ade5ebb2f7f2e8d68351890051a20f9 Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Wed, 15 Mar 2017 17:31:40 +0000 Subject: [PATCH] si_pipe: remove nullity check after dereference MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit sscreen cannot be NULL CID 1354483 Signed-off-by: Julien Isorce Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_pipe.c | 3 --- 1 file changed, 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; -- 2.30.2