Skip to content

Commit

Permalink
staging: line6: variax.c: Eliminated remaining strict_stroul()s
Browse files Browse the repository at this point in the history
Eliminated remaining calls to strict_stroul() and replaced them with
strict_kstrtou8().

Signed-off-by: Johannes Thumshirn <morbidrsa@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Johannes Thumshirn authored and Greg Kroah-Hartman committed Aug 14, 2012
1 parent 858c8ad commit 9291975
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/line6/variax.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,10 @@ static ssize_t variax_set_model(struct device *dev,
{
struct usb_line6_variax *variax =
usb_get_intfdata(to_usb_interface(dev));
unsigned long value;
u8 value;
int ret;

ret = strict_strtoul(buf, 10, &value);
ret = kstrtou8(buf, 10, &value);
if (ret)
return ret;

Expand Down Expand Up @@ -387,10 +387,10 @@ static ssize_t variax_set_active(struct device *dev,
{
struct usb_line6_variax *variax =
usb_get_intfdata(to_usb_interface(dev));
unsigned long value;
u8 value;
int ret;

ret = strict_strtoul(buf, 10, &value);
ret = kstrtou8(buf, 10, &value);
if (ret)
return ret;

Expand Down

0 comments on commit 9291975

Please sign in to comment.