From 01b60707d7aa8db402c9288472c102da483cad39 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 28 Feb 2017 09:04:55 +0100 Subject: srd_decoder_load(): Drop dead code. In 'except_out' the fail_txt variable is always non-NULL. --- decoder.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'decoder.c') diff --git a/decoder.c b/decoder.c index f15a799..83b758f 100644 --- a/decoder.c +++ b/decoder.c @@ -767,13 +767,9 @@ SRD_API int srd_decoder_load(const char *module_name) return SRD_OK; except_out: - if (fail_txt) { - srd_exception_catch("Failed to load decoder %s: %s", - module_name, fail_txt); - fail_txt = NULL; - } else { - srd_exception_catch("Failed to load decoder %s", module_name); - } + srd_exception_catch("Failed to load decoder %s: %s", + module_name, fail_txt); + fail_txt = NULL; err_out: if (fail_txt) srd_err("Failed to load decoder %s: %s", module_name, fail_txt); -- cgit v1.2.3-70-g09d2