From 3a2318c729583a5ea61756cd0ca23974ed90760e Mon Sep 17 00:00:00 2001 From: Avi Date: Mon, 13 Mar 2023 19:46:58 +1000 Subject: [PATCH] Fix #79, Combine consecutive, mutually-exclusive status checks --- fsw/src/lc_app.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fsw/src/lc_app.c b/fsw/src/lc_app.c index a8b9307..89888c1 100644 --- a/fsw/src/lc_app.c +++ b/fsw/src/lc_app.c @@ -515,8 +515,7 @@ int32 LC_CreateResultTables(void) CFE_EVS_SendEvent(LC_WRT_REGISTER_ERR_EID, CFE_EVS_EventType_ERROR, "Error registering WRT, RC=0x%08X", (unsigned int)Result); } - - if (Result == CFE_SUCCESS) + else { Result = CFE_TBL_GetAddress((void *)&LC_OperData.WRTPtr, LC_OperData.WRTHandle);