From: Kevin Day Date: Wed, 30 Mar 2022 04:08:54 +0000 (-0500) Subject: Cleanup: Remove unnecessary error assignment. X-Git-Tag: 0.5.9~36 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=08b4bde1aeabd5bd5b65a58a56309d64047f9157;p=fll Cleanup: Remove unnecessary error assignment. --- diff --git a/level_3/fss_payload_read/c/fss_payload_read.c b/level_3/fss_payload_read/c/fss_payload_read.c index 04ef63f..dc35be7 100644 --- a/level_3/fss_payload_read/c/fss_payload_read.c +++ b/level_3/fss_payload_read/c/fss_payload_read.c @@ -167,7 +167,7 @@ extern "C" { fll_program_parameter_process_empty(&main->context, sets); } - if (F_status_is_error(status)) return F_status_set_error(status); + if (F_status_is_error(status)) return status; } // Identify priority of verbosity related parameters. @@ -177,7 +177,6 @@ extern "C" { const f_console_parameter_ids_t choices = macro_f_console_parameter_ids_t_initialize(ids, 4); status = f_console_parameter_prioritize_right(main->parameters, choices, &choice); - if (F_status_is_error(status)) return status; if (choice == fss_payload_read_parameter_verbosity_quiet_e) { diff --git a/level_3/fss_payload_write/c/fss_payload_write.c b/level_3/fss_payload_write/c/fss_payload_write.c index 1854114..312e4ce 100644 --- a/level_3/fss_payload_write/c/fss_payload_write.c +++ b/level_3/fss_payload_write/c/fss_payload_write.c @@ -96,7 +96,7 @@ extern "C" { fll_program_parameter_process_empty(&main->context, sets); } - if (F_status_is_error(status)) return F_status_set_error(status); + if (F_status_is_error(status)) return status; } // Identify priority of verbosity related parameters. @@ -106,7 +106,6 @@ extern "C" { const f_console_parameter_ids_t choices = macro_f_console_parameter_ids_t_initialize(ids, 4); status = f_console_parameter_prioritize_right(main->parameters, choices, &choice); - if (F_status_is_error(status)) return status; if (choice == fss_payload_write_parameter_verbosity_quiet_e) { diff --git a/level_3/fss_status_code/c/fss_status_code.c b/level_3/fss_status_code/c/fss_status_code.c index 3b92fab..e5007ac 100644 --- a/level_3/fss_status_code/c/fss_status_code.c +++ b/level_3/fss_status_code/c/fss_status_code.c @@ -69,7 +69,7 @@ extern "C" { fll_program_parameter_process_empty(&main->context, sets); } - if (F_status_is_error(status)) return F_status_set_error(status); + if (F_status_is_error(status)) return status; } // Identify priority of verbosity related parameters. @@ -79,7 +79,6 @@ extern "C" { const f_console_parameter_ids_t choices = macro_f_console_parameter_ids_t_initialize(ids, 4); status = f_console_parameter_prioritize_right(main->parameters, choices, &choice); - if (F_status_is_error(status)) return status; if (choice == fss_status_code_parameter_verbosity_quiet_e) { diff --git a/level_3/status_code/c/status_code.c b/level_3/status_code/c/status_code.c index 4648d95..1caf71d 100644 --- a/level_3/status_code/c/status_code.c +++ b/level_3/status_code/c/status_code.c @@ -69,7 +69,7 @@ extern "C" { fll_program_parameter_process_empty(&main->context, sets); } - if (F_status_is_error(status)) return F_status_set_error(status); + if (F_status_is_error(status)) return status; } // Identify priority of verbosity related parameters. @@ -79,7 +79,6 @@ extern "C" { const f_console_parameter_ids_t choices = macro_f_console_parameter_ids_t_initialize(ids, 4); status = f_console_parameter_prioritize_right(main->parameters, choices, &choice); - if (F_status_is_error(status)) return status; if (choice == status_code_parameter_verbosity_quiet_e) {