In 'except_out' the fail_txt variable is always non-NULL.
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);