Commit b9eafe43 authored by Eli Lindsey's avatar Eli Lindsey Committed by Greg Kroah-Hartman

staging: frontier: switch to strict_strtoul in tranzport.c

This is a patch to tranzport.c that changes a use of simple_strtoul to
strict_strtoul at the suggestion of checkpatch.pl
Signed-off-by: default avatarEli Lindsey <eli@siliconsprawl.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 69121fa8
...@@ -198,7 +198,9 @@ static void usb_tranzport_abort_transfers(struct usb_tranzport *dev) ...@@ -198,7 +198,9 @@ static void usb_tranzport_abort_transfers(struct usb_tranzport *dev)
{ \ { \
struct usb_interface *intf = to_usb_interface(dev); \ struct usb_interface *intf = to_usb_interface(dev); \
struct usb_tranzport *t = usb_get_intfdata(intf); \ struct usb_tranzport *t = usb_get_intfdata(intf); \
int temp = simple_strtoul(buf, NULL, 10); \ unsigned long temp; \
if (strict_strtoul(buf, 10, &temp)) \
return -EINVAL; \
t->value = temp; \ t->value = temp; \
return count; \ return count; \
} \ } \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment