rbug: do not return void-value
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 24 Mar 2020 10:04:39 +0000 (11:04 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 25 Mar 2020 14:19:37 +0000 (14:19 +0000)
Returning a void-value is nonsensical, and in this case it seems like a
mistake.

This eliminates a warning when building on MSVC.

Fixes: fb04e5da97d ("gallium: add pipe_screen::finalize_nir")
Reviewed-by: Brian Paul <brianp@vmware.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4297>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4297>

src/gallium/auxiliary/driver_rbug/rbug_screen.c

index 86286cf9f29553239ac3caa460bfdf0ab1db29b2..ed6a3da83f938027f86165a0ce93e2d900f736b9 100644 (file)
@@ -375,7 +375,7 @@ rbug_screen_finalize_nir(struct pipe_screen *_screen, void *nir, bool optimize)
 {
    struct pipe_screen *screen = rbug_screen(_screen)->screen;
 
-   return screen->finalize_nir(screen, nir, optimize);
+   screen->finalize_nir(screen, nir, optimize);
 }
 
 bool