Skip to content

Commit

Permalink
rtems_yaffs: don't set offset when write file
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangfu committed May 14, 2012
1 parent 34cc1b9 commit dfccac6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rtems/rtems_yaffs.c
Expand Up @@ -614,9 +614,7 @@ static ssize_t ryfs_file_write(rtems_libio_t *iop, const void *buffer, size_t co
new_offset = offset + count; new_offset = offset + count;
if (is_valid_offset(new_offset)) { if (is_valid_offset(new_offset)) {
rv = yaffs_wr_file(obj, buffer, offset, (int) count, 0); rv = yaffs_wr_file(obj, buffer, offset, (int) count, 0);
if (rv > 0) { if (rv <= 0) {
iop->offset = new_offset;
} else {
errno = ENOSPC; errno = ENOSPC;
} }
} else { } else {
Expand Down

0 comments on commit dfccac6

Please sign in to comment.