From c3b5eea2cc7592219d6b4e7f4aea06846266bad8 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Mon, 12 Nov 2018 14:45:47 -0800 Subject: [PATCH] turnip: Don't return from tu_stub funcs Since the macros are lowercase and look like normal functions, that they change control flow with a hidden return is surprising. --- src/freedreno/vulkan/tu_private.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/freedreno/vulkan/tu_private.h b/src/freedreno/vulkan/tu_private.h index 26a342f6652..d6271f3465e 100644 --- a/src/freedreno/vulkan/tu_private.h +++ b/src/freedreno/vulkan/tu_private.h @@ -262,16 +262,9 @@ tu_logi_v(const char *format, va_list va); #define tu_use_args(...) __tu_use_args(0, ##__VA_ARGS__) static inline void __tu_use_args(int ignore, ...) {} -#define tu_stub_return(v) \ - do { \ - tu_finishme("stub %s", __func__); \ - return (v); \ - } while (0) - #define tu_stub() \ do { \ tu_finishme("stub %s", __func__); \ - return; \ } while (0) void * -- 2.30.2