Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37628
b: refs/heads/master
c: 930ff81
h: refs/heads/master
v: v3
  • Loading branch information
Josef 'Jeff' Sipek authored and Linus Torvalds committed Oct 1, 2006
1 parent fc399a5 commit 7a2b7c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: edceeaf50be1764db4aa7c1b19e540067a051e77
refs/heads/master: 930ff81c595e7923575cd7c0b8d7284ac1b3815e
7 changes: 4 additions & 3 deletions trunk/drivers/char/mbcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/mm.h>
#include <linux/fs.h>
#include <linux/uio.h>
#include <asm/io.h>
#include <asm/uaccess.h>
Expand Down Expand Up @@ -447,15 +448,15 @@ loff_t mbcs_sram_llseek(struct file * filp, loff_t off, int whence)
loff_t newpos;

switch (whence) {
case 0: /* SEEK_SET */
case SEEK_SET:
newpos = off;
break;

case 1: /* SEEK_CUR */
case SEEK_CUR:
newpos = filp->f_pos + off;
break;

case 2: /* SEEK_END */
case SEEK_END:
newpos = MBCS_SRAM_SIZE + off;
break;

Expand Down

0 comments on commit 7a2b7c1

Please sign in to comment.