From 08b4bde1aeabd5bd5b65a58a56309d64047f9157 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 29 Mar 2022 23:08:54 -0500 Subject: [PATCH] Cleanup: Remove unnecessary error assignment. --- level_3/fss_payload_read/c/fss_payload_read.c | 3 +-- level_3/fss_payload_write/c/fss_payload_write.c | 3 +-- level_3/fss_status_code/c/fss_status_code.c | 3 +-- level_3/status_code/c/status_code.c | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) 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) { -- 1.8.3.1