Skip to content
Snippets Groups Projects
Commit ea59830d authored by Josef 'Jeff' Sipek's avatar Josef 'Jeff' Sipek Committed by David Woodhouse
Browse files

[MTD] Use SEEK_{SET,CUR,END} instead of hardcoded values in mtdchar lseek()

parent de591dac
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment