Permalink
Browse files

rtems_yaffs: don't set offset when write file

  • Loading branch information...
1 parent 34cc1b9 commit dfccac65f0aee6de07550eded8bb14420f9f2268 @xiangfu xiangfu committed May 14, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 rtems/rtems_yaffs.c
View
@@ -614,9 +614,7 @@ static ssize_t ryfs_file_write(rtems_libio_t *iop, const void *buffer, size_t co
new_offset = offset + count;
if (is_valid_offset(new_offset)) {
rv = yaffs_wr_file(obj, buffer, offset, (int) count, 0);
- if (rv > 0) {
- iop->offset = new_offset;
- } else {
+ if (rv <= 0) {
errno = ENOSPC;
}
} else {

0 comments on commit dfccac6

Please sign in to comment.