Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270565
b: refs/heads/master
c: 3ed4646
h: refs/heads/master
i:
  270563: 8e6b315
v: v3
  • Loading branch information
Mark Brown committed Sep 8, 2011
1 parent 17e3c45 commit c5a0145
Show file tree
Hide file tree
Showing 2 changed files with 1 addition 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: c8f4b7fd681b236a1878dffaebc47f4f18c66d80
refs/heads/master: 3ed464659a1d83a87f4ef79fab4d85a8dcf677c9
4 changes: 0 additions & 4 deletions trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,17 +244,13 @@ static ssize_t codec_reg_write_file(struct file *file,
size_t buf_size;
char *start = buf;
unsigned long reg, value;
int step = 1;
struct snd_soc_codec *codec = file->private_data;

buf_size = min(count, (sizeof(buf)-1));
if (copy_from_user(buf, user_buf, buf_size))
return -EFAULT;
buf[buf_size] = 0;

if (codec->driver->reg_cache_step)
step = codec->driver->reg_cache_step;

while (*start == ' ')
start++;
reg = simple_strtoul(start, &start, 16);
Expand Down

0 comments on commit c5a0145

Please sign in to comment.