Posix return_code
variables could be initialized to ERROR
to simplify code
#1386
Labels
return_code
variables could be initialized to ERROR
to simplify code
#1386
Checklist
Describe the bug
A few
return_code
variables in the POSIX implementation units could be initialized toERROR
/FAILURE
which would negate the need to assign at each failure point.Code snips
osal/src/os/posix/src/os-impl-binsem.c
Lines 118 to 240 in 5036fed
Same for
OS_Posix_TableMutex_Init()
andOS_Posix_TimeBaseAPI_Impl_Init()
.Expected behavior
Simplify code by setting default to
ERROR
/FAILURE
and assigningSUCCESS
when necessary.Reporter Info
Avi Weiss @thnkslprpt
The text was updated successfully, but these errors were encountered: