Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324491
b: refs/heads/master
c: cdf5e55
h: refs/heads/master
i:
  324489: 1b1eb0b
  324487: 679c2c1
v: v3
  • Loading branch information
Johannes Thumshirn authored and Greg Kroah-Hartman committed Aug 14, 2012
1 parent f9dce11 commit 45989bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: d7de993503aa23f34d58b7945cf00ad9a9486bda
refs/heads/master: cdf5e55124e4804fc0027df7e89567a3f5eed8bf
8 changes: 7 additions & 1 deletion trunk/drivers/staging/line6/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ static ssize_t pcm_set_impulse_volume(struct device *dev,
const char *buf, size_t count)
{
struct snd_line6_pcm *line6pcm = dev2pcm(dev);
int value = simple_strtoul(buf, NULL, 10);
int value;
int rv;

rv = kstrtoint(buf, 10, &value);
if (rv < 0)
return rv;

line6pcm->impulse_volume = value;

if (value > 0)
Expand Down

0 comments on commit 45989bb

Please sign in to comment.