[rtems commit] msdos_file.c: Reverse return codes per Gedare
Joel Sherril
joel at rtems.org
Thu Nov 27 15:29:28 UTC 2014
Module: rtems
Branch: master
Commit: 8dbbea6bccf68634dddb3236f4b05bcf0558c46b
Changeset: http://git.rtems.org/rtems/commit/?id=8dbbea6bccf68634dddb3236f4b05bcf0558c46b
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Thu Nov 27 09:29:16 2014 -0600
msdos_file.c: Reverse return codes per Gedare
---
cpukit/libfs/src/dosfs/msdos_file.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cpukit/libfs/src/dosfs/msdos_file.c b/cpukit/libfs/src/dosfs/msdos_file.c
index 1d62886..ada943d 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;
}
More information about the vc
mailing list