From f895f0dce6149b2c9aa0b386aeb70f8eae633d8d Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Mon, 24 Aug 2020 11:16:45 -0500 Subject: [PATCH] vkd3d-shader: Do not check for NULL in vkd3d_shader_free_shader_code(). Signed-off-by: Zebediah Figura Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- libs/vkd3d-shader/vkd3d_shader_main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libs/vkd3d-shader/vkd3d_shader_main.c b/libs/vkd3d-shader/vkd3d_shader_main.c index 68e23dad..e3abaf7c 100644 --- a/libs/vkd3d-shader/vkd3d_shader_main.c +++ b/libs/vkd3d-shader/vkd3d_shader_main.c @@ -917,9 +917,6 @@ void vkd3d_shader_free_scan_descriptor_info(struct vkd3d_shader_scan_descriptor_ void vkd3d_shader_free_shader_code(struct vkd3d_shader_code *shader_code) { - if (!shader_code) - return; - vkd3d_free((void *)shader_code->code); }