aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <[email protected]>2019-09-16 15:15:47 +0200
committerLucas Stach <[email protected]>2019-10-18 10:12:07 +0000
commit1b65c49c58c8a3d6a7b4a35a6e5c8f96d1828c23 (patch)
treef2c7c571941b8d2900f982da77aebe6f0d240d95
parent93d47932b843aecdad7277287bf1850c16bf2f29 (diff)
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 <[email protected]>
-rw-r--r--src/gallium/auxiliary/driver_rbug/rbug_screen.c3
1 files changed, 1 insertions, 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