diff options
author | Josh Oguin <josh.oguin@oarcorp.com> | 2014-11-19 14:38:16 -0600 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-11-26 07:51:58 -0600 |
commit | 21c0ca84262e41b59e44b44945980ee0f8cb0a1a (patch) | |
tree | 691c973449248f3062c8437da0d7c2a630cb51ac /cpukit/libfs/src/dosfs/msdos_file.c | |
parent | dosfs/msdos_conv.c: Remove unnecessary operations (diff) | |
download | rtems-21c0ca84262e41b59e44b44945980ee0f8cb0a1a.tar.bz2 |
dosfs/msdos_file.c: Return an error if it occurs
CodeSonar flagged this as a case where the return value from fat_sync()
was not used. Now it is used to return pass/fail to the caller.
Diffstat (limited to 'cpukit/libfs/src/dosfs/msdos_file.c')
-rw-r--r-- | cpukit/libfs/src/dosfs/msdos_file.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos_file.c b/cpukit/libfs/src/dosfs/msdos_file.c index 7a092721ae..1d62886668 100644 --- a/cpukit/libfs/src/dosfs/msdos_file.c +++ b/cpukit/libfs/src/dosfs/msdos_file.c @@ -244,5 +244,8 @@ msdos_file_sync(rtems_libio_t *iop) rc = fat_sync(&fs_info->fat); rtems_semaphore_release(fs_info->vol_sema); - return RC_OK; + if ( rc == 0 ) + return RC_OK; + + rtems_set_errno_and_return_minus_one(EIO); } |