Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192130
b: refs/heads/master
c: be94bbb
h: refs/heads/master
v: v3
  • Loading branch information
Jan Blunck authored and David S. Miller committed Apr 28, 2010
1 parent 1f8855e commit 0b10479
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 667f0cee3e0321151aa7a1a5222afe67ca4be0ea
refs/heads/master: be94bbb5db4de0f3a2a5405511ea3ebea261f2c8
6 changes: 3 additions & 3 deletions trunk/drivers/sbus/char/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ static ssize_t
flash_read(struct file * file, char __user * buf,
size_t count, loff_t *ppos)
{
unsigned long p = file->f_pos;
loff_t p = *ppos;
int i;

if (count > flash.read_size - p)
count = flash.read_size - p;

Expand All @@ -118,7 +118,7 @@ flash_read(struct file * file, char __user * buf,
buf++;
}

file->f_pos += count;
*ppos += count;
return count;
}

Expand Down

0 comments on commit 0b10479

Please sign in to comment.