Skip to content

Commit

Permalink
Fix #1107, Remove dead branch (superfluous if condition)
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Sep 22, 2023
1 parent b5dd01c commit ea2faf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/standalone-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defaults:

env:
allowed_ncov_lines: 0
allowed_ncov_branches: 4
allowed_ncov_branches: 2
allowed_ncov_functions: 0

jobs:
Expand Down
5 changes: 2 additions & 3 deletions src/os/shared/src/osapi-filesys.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,8 @@ int32 OS_FileSys_Initialize(char *address, const char *fsdevname, const char *fs
* contains the string "RAM" then it is a RAM disk. Otherwise
* leave the type as UNKNOWN and let the implementation decide.
*/
if (filesys->fstype == OS_FILESYS_TYPE_UNKNOWN &&
(filesys->address != NULL || strncmp(filesys->volume_name, OS_FILESYS_RAMDISK_VOLNAME_PREFIX,
sizeof(OS_FILESYS_RAMDISK_VOLNAME_PREFIX) - 1) == 0))
if (filesys->address != NULL || strncmp(filesys->volume_name, OS_FILESYS_RAMDISK_VOLNAME_PREFIX,
sizeof(OS_FILESYS_RAMDISK_VOLNAME_PREFIX) - 1) == 0)
{
filesys->fstype = OS_FILESYS_TYPE_VOLATILE_DISK;
}
Expand Down

0 comments on commit ea2faf7

Please sign in to comment.