Mesa (master): rbug: remove superfluous NULL check
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Oct 18 10:12:35 UTC 2019
Module: Mesa
Branch: master
Commit: 1b65c49c58c8a3d6a7b4a35a6e5c8f96d1828c23
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b65c49c58c8a3d6a7b4a35a6e5c8f96d1828c23
Author: Lucas Stach <l.stach at pengutronix.de>
Date: Mon Sep 16 15:15:47 2019 +0200
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 <l.stach at pengutronix.de>
---
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
More information about the mesa-commit
mailing list