From: Uwe Hermann Date: Tue, 28 Feb 2017 08:04:55 +0000 (+0100) Subject: srd_decoder_load(): Drop dead code. X-Git-Tag: libsigrokdecode-0.5.0~70 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=01b60707d7aa8db402c9288472c102da483cad39;p=libsigrokdecode.git srd_decoder_load(): Drop dead code. In 'except_out' the fail_txt variable is always non-NULL. --- 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);