Skip to content

Commit

Permalink
Merge pull request #1368 from thnkslprpt:fix-1107-remove-dead-branch
Browse files Browse the repository at this point in the history
Fix #1107, Remove unreachable branch (superfluous if condition)
  • Loading branch information
dzbaker committed Jan 31, 2024
2 parents fed9ead + ea2faf7 commit 10b0255
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 10b0255

Please sign in to comment.