summaryrefslogtreecommitdiff
path: root/decoder.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2017-02-28 09:04:55 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2017-02-28 15:13:28 +0100
commit01b60707d7aa8db402c9288472c102da483cad39 (patch)
tree029414210e689eebd8174c22a7ac39f53cbb2bb0 /decoder.c
parent3e18df5daa04fe3851b20909e912489bfe98e6b9 (diff)
downloadlibsigrokdecode-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.c10
1 files changed, 3 insertions, 7 deletions
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);