-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unreachable branch on unknown fstype in OS_FileSys_Initialize
#1107
Comments
I concur on removing the conditional and assuming it is always This helper function is only used as part of |
Fix nasa#955, Remove OS_printf stub count checks in UT
Fix #1107, Remove unreachable branch (superfluous if condition)
Is your feature request related to a problem? Please describe.
filesys->fstype == OS_FILESYS_TYPE_UNKNOWN
is always true due to memset of filesys to zero inOS_OBJECT_INIT
call. Nothing else can logically set it otherwise or reason to not set if the other conditions are true.osal/src/os/shared/src/osapi-filesys.c
Lines 176 to 188 in cb95655
Describe the solution you'd like
Remove dead branch.
Describe alternatives you've considered
Clear justification for leaving in.
Additional context
None.
Requester Info
Jacob Hageman - NASA/GSFC
The text was updated successfully, but these errors were encountered: