Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337829
b: refs/heads/master
c: b07d945
h: refs/heads/master
i:
  337827: f1f5672
v: v3
  • Loading branch information
Stefan Hajnoczi authored and Greg Kroah-Hartman committed Nov 13, 2012
1 parent 92c575e commit b4d5091
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 6a8ec8769d4613a5fbd981bfb3e5925b29d4140d
refs/heads/master: b07d945227e4e62d93e26c694bf0e7b70978a7d6
8 changes: 2 additions & 6 deletions trunk/drivers/staging/line6/toneport.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,11 @@ static ssize_t toneport_set_led_red(struct device *dev,
const char *buf, size_t count)
{
int retval;
long value;

retval = strict_strtol(buf, 10, &value);
retval = kstrtoint(buf, 10, &led_red);
if (retval)
return retval;

led_red = value;
toneport_update_led(dev);
return count;
}
Expand All @@ -143,13 +141,11 @@ static ssize_t toneport_set_led_green(struct device *dev,
const char *buf, size_t count)
{
int retval;
long value;

retval = strict_strtol(buf, 10, &value);
retval = kstrtoint(buf, 10, &led_green);
if (retval)
return retval;

led_green = value;
toneport_update_led(dev);
return count;
}
Expand Down

0 comments on commit b4d5091

Please sign in to comment.