From 926707ae44cdc8ca2cbfbd750d067b96cb0ceadc Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 14 Apr 2013 23:05:25 +0200 Subject: [PATCH] Avoid needless branch. --- frontend/menu/rgui.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/menu/rgui.c b/frontend/menu/rgui.c index df8d607d3c..63932ad712 100644 --- a/frontend/menu/rgui.c +++ b/frontend/menu/rgui.c @@ -1414,11 +1414,8 @@ static void shader_manager_init(rgui_handle_t *rgui) const char *shader_dir = *g_settings.video.shader_dir ? g_settings.video.shader_dir : g_settings.system_directory; - if (!conf) - { - fill_pathname_join(cgp_path, shader_dir, "rgui.glslp", sizeof(cgp_path)); - conf = config_file_new(cgp_path); - } + fill_pathname_join(cgp_path, shader_dir, "rgui.glslp", sizeof(cgp_path)); + conf = config_file_new(cgp_path); if (!conf) {