Skip to content

Commit

Permalink
Merge pull request #33 from thnkslprpt/fix-32-return-parentheses
Browse files Browse the repository at this point in the history
Fix #32, Remove unnecessary parentheses around return values.
  • Loading branch information
dzbaker authored Oct 3, 2022
2 parents 39ef9eb + 7b0eb7f commit bd6aca0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions fsw/src/md_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ int32 MD_AppInit(void)

} /* end if */

return (Status);
return Status;

} /* End of MD_AppInit */

Expand Down Expand Up @@ -328,7 +328,7 @@ int32 MD_InitSoftwareBusServices(void)

} /* end if */

return (Status);
return Status;

} /* End of MD_InitSoftwareBusServices */

Expand Down
6 changes: 3 additions & 3 deletions fsw/src/md_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ bool MD_Verify32Aligned(cpuaddr Address, uint32 Size)
IsAligned = true;
}

return (IsAligned);
return IsAligned;
}

/******************************************************************************/
Expand All @@ -182,7 +182,7 @@ bool MD_Verify16Aligned(cpuaddr Address, uint32 Size)
IsAligned = true;
}

return (IsAligned);
return IsAligned;
}

/******************************************************************************/
Expand Down Expand Up @@ -222,7 +222,7 @@ bool MD_ResolveSymAddr(MD_SymAddr_t *SymAddr, cpuaddr *ResolvedAddr)
else
Valid = false;
}
return (Valid);
return Valid;
}

/************************/
Expand Down
20 changes: 10 additions & 10 deletions unit-test/utilities/md_test_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,39 +100,39 @@ void MD_Test_TearDown(void)
int32 CFE_PSP_MemWrite8(cpuaddr MemoryAddress, uint8 ByteValue)
{
if (!MemoryAddress)
return (-1);
return -1;
else
return (CFE_PSP_SUCCESS);
return CFE_PSP_SUCCESS;
}

int32 CFE_PSP_MemRead16(cpuaddr MemoryAddress, uint16 *uint16Value)
{
if (!MemoryAddress)
return (-1);
return -1;
else
return (CFE_PSP_SUCCESS);
return CFE_PSP_SUCCESS;
}

int32 CFE_PSP_MemWrite16(cpuaddr MemoryAddress, uint16 uint16Value)
{
if (!MemoryAddress)
return (-1);
return -1;
else
return (CFE_PSP_SUCCESS);
return CFE_PSP_SUCCESS;
}

int32 CFE_PSP_MemRead32(cpuaddr MemoryAddress, uint32 *uint32Value)
{
if (!MemoryAddress)
return (-1);
return -1;
else
return (CFE_PSP_SUCCESS);
return CFE_PSP_SUCCESS;
}

int32 CFE_PSP_MemWrite32(cpuaddr MemoryAddress, uint32 uint32Value)
{
if (!MemoryAddress)
return (-1);
return -1;
else
return (CFE_PSP_SUCCESS);
return CFE_PSP_SUCCESS;
}

0 comments on commit bd6aca0

Please sign in to comment.