Skip to content

Commit

Permalink
sync_filesystem.h: fix unreachable code
Browse files Browse the repository at this point in the history
Fix for:

CID 1264460 (ceph#1 of 1): Structurally dead code (UNREACHABLE)
unreachable: This code cannot be reached: sync();

Signed-off-by: Danny Al-Gaaf <[email protected]>
  • Loading branch information
dalgaaf committed Mar 12, 2015
1 parent c0d8089 commit 9921836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/sync_filesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ inline int sync_filesystem(int fd)
return 0;
else
return -errno;
#endif

#else
sync();
return 0;
#endif
}

#endif

0 comments on commit 9921836

Please sign in to comment.