From 4df6151e14fa0c7d85e60477e80b625d125e204a Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 16 May 2017 21:36:33 +0200 Subject: [PATCH] video_driver_init_filter - cleanup --- gfx/video_driver.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index c36b3df9a4..2e0c085dd4 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -571,15 +571,13 @@ static void video_driver_init_filter(enum retro_pixel_format colfmt) width * height * video_driver_state_out_bpp); #endif if (!buf) - goto error; + { + RARCH_ERR("[Video]: Softfilter initialization failed.\n"); + video_driver_filter_free(); + return; + } video_driver_state_buffer = buf; - - return; - -error: - RARCH_ERR("[Video]: Softfilter initialization failed.\n"); - video_driver_filter_free(); } static void video_driver_init_input(const input_driver_t *tmp)