diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-11-27 09:29:16 -0600 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-11-27 09:29:16 -0600 |
commit | 8dbbea6bccf68634dddb3236f4b05bcf0558c46b (patch) | |
tree | 676e25a333d127c3964079e66b8e6ef9341ffff9 /cpukit/libfs/src | |
parent | rtems-bin2c.c: Fix free() of altered pointer (diff) | |
download | rtems-8dbbea6bccf68634dddb3236f4b05bcf0558c46b.tar.bz2 |
msdos_file.c: Reverse return codes per Gedare
Diffstat (limited to 'cpukit/libfs/src')
-rw-r--r-- | cpukit/libfs/src/dosfs/msdos_file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos_file.c b/cpukit/libfs/src/dosfs/msdos_file.c index 1d62886668..ada943d854 100644 --- a/cpukit/libfs/src/dosfs/msdos_file.c +++ b/cpukit/libfs/src/dosfs/msdos_file.c @@ -244,8 +244,8 @@ msdos_file_sync(rtems_libio_t *iop) rc = fat_sync(&fs_info->fat); rtems_semaphore_release(fs_info->vol_sema); - if ( rc == 0 ) - return RC_OK; + if ( rc != 0 ) + rtems_set_errno_and_return_minus_one(EIO); - rtems_set_errno_and_return_minus_one(EIO); + return RC_OK; } |