diff --git a/gst-libs/gst/vulkan/gstvkerror.c b/gst-libs/gst/vulkan/gstvkerror.c index a514505066..5fff48c254 100644 --- a/gst-libs/gst/vulkan/gstvkerror.c +++ b/gst-libs/gst/vulkan/gstvkerror.c @@ -27,7 +27,7 @@ #include "gstvkerror.h" /* *INDENT-OFF* */ -static const struct +static const struct { VkResult result; const char *str; @@ -63,8 +63,6 @@ _vk_result_to_string (VkResult result) if (result >= 0) return NULL; - if (result < VK_RESULT_BEGIN_RANGE) - return "Unknown Error"; for (i = 0; i < G_N_ELEMENTS (vk_result_string_map); i++) { if (result == vk_result_string_map[i].result)