diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2017-02-28 09:04:55 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2017-02-28 15:13:28 +0100 |
commit | 01b60707d7aa8db402c9288472c102da483cad39 (patch) | |
tree | 029414210e689eebd8174c22a7ac39f53cbb2bb0 /decoder.c | |
parent | 3e18df5daa04fe3851b20909e912489bfe98e6b9 (diff) | |
download | libsigrokdecode-01b60707d7aa8db402c9288472c102da483cad39.tar.gz libsigrokdecode-01b60707d7aa8db402c9288472c102da483cad39.zip |
srd_decoder_load(): Drop dead code.
In 'except_out' the fail_txt variable is always non-NULL.
Diffstat (limited to 'decoder.c')
-rw-r--r-- | decoder.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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); |