From: Lucas Stach Date: Mon, 16 Sep 2019 13:15:47 +0000 (+0200) Subject: rbug: remove superfluous NULL check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b65c49c58c8a3d6a7b4a35a6e5c8f96d1828c23;p=mesa.git 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 --- 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