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.
This commit is contained in:
Josh Oguin
2014-11-19 14:38:16 -06:00
committed by Joel Sherrill
parent 10f28a3af1
commit 21c0ca8426

View File

@@ -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);
}