rbug: remove superfluous NULL check
authorLucas Stach <l.stach@pengutronix.de>
Mon, 16 Sep 2019 13:15:47 +0000 (15:15 +0200)
committerLucas Stach <dev@lynxeye.de>
Fri, 18 Oct 2019 10:12:07 +0000 (10:12 +0000)
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@pengutronix.de>
src/gallium/auxiliary/driver_rbug/rbug_screen.c

index 1a27618ef49d65fbd79d55d7e69a168ef129f8f6..5f27b628e8f7c3d382940626d4b3691523ab473b 100644 (file)
@@ -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