Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84293
b: refs/heads/master
c: 0411e73
h: refs/heads/master
i:
  84291: 04bea46
v: v3
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Jan 25, 2008
1 parent cd87de6 commit c2ba9aa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 91f2d53cd75a8fa3557246af965155208c4c69a7
refs/heads/master: 0411e7353192d7deebd4f50b9ee41974ec3a634c
4 changes: 1 addition & 3 deletions trunk/drivers/mtd/ubi/cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ static ssize_t vol_cdev_write(struct file *file, const char __user *buf,
*/
count = err;

vol->updating = 0;
err = ubi_check_volume(ubi, vol->vol_id);
if (err < 0)
return err;
Expand All @@ -382,7 +383,6 @@ static ssize_t vol_cdev_write(struct file *file, const char __user *buf,
revoke_exclusive(desc, UBI_READWRITE);
}

*offp += count;
return count;
}

Expand Down Expand Up @@ -430,8 +430,6 @@ static int vol_cdev_ioctl(struct inode *inode, struct file *file,
err = ubi_start_update(ubi, vol->vol_id, bytes);
if (bytes == 0)
revoke_exclusive(desc, UBI_READWRITE);

file->f_pos = 0;
break;
}

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/mtd/ubi/upd.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ int ubi_more_update_data(struct ubi_device *ubi, int vol_id,
if (err == 0) {
err = to_write;
vfree(vol->upd_buf);
vol->updating = 0;
}
}

Expand Down

0 comments on commit c2ba9aa

Please sign in to comment.