Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34002
b: refs/heads/master
c: ea59830
h: refs/heads/master
v: v3
  • Loading branch information
Josef 'Jeff' Sipek authored and David Woodhouse committed Sep 17, 2006
1 parent 376df37 commit c442571
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: de591dacf3034977b3fb94b61d08240c8b35c39d
refs/heads/master: ea59830db01b6b3d6bda9f84e3d272a346115e8e
9 changes: 3 additions & 6 deletions trunk/drivers/mtd/mtdchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,12 @@ static loff_t mtd_lseek (struct file *file, loff_t offset, int orig)
struct mtd_info *mtd = mfi->mtd;

switch (orig) {
case 0:
/* SEEK_SET */
case SEEK_SET:
break;
case 1:
/* SEEK_CUR */
case SEEK_CUR:
offset += file->f_pos;
break;
case 2:
/* SEEK_END */
case SEEK_END:
offset += mtd->size;
break;
default:
Expand Down

0 comments on commit c442571

Please sign in to comment.