From 1b65c49c58c8a3d6a7b4a35a6e5c8f96d1828c23 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Mon, 16 Sep 2019 15:15:47 +0200 Subject: [PATCH] rbug: remove superfluous NULL check The SCR_INIT macro used to install the rbug resource_changed method will only do so when the driver below rbug exposes this method, so the check will always evaluate to true. Signed-off-by: Lucas Stach --- src/gallium/auxiliary/driver_rbug/rbug_screen.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/driver_rbug/rbug_screen.c b/src/gallium/auxiliary/driver_rbug/rbug_screen.c index 1a27618ef49..5f27b628e8f 100644 --- a/src/gallium/auxiliary/driver_rbug/rbug_screen.c +++ b/src/gallium/auxiliary/driver_rbug/rbug_screen.c @@ -307,8 +307,7 @@ rbug_screen_resource_changed(struct pipe_screen *_screen, struct pipe_screen *screen = rb_screen->screen; struct pipe_resource *resource = rb_resource->resource; - if (screen->resource_changed) - screen->resource_changed(screen, resource); + screen->resource_changed(screen, resource); } static void -- 2.30.2