summaryrefslogtreecommitdiff
path: root/drivers/staging/frontier
diff options
context:
space:
mode:
authorEli Lindsey <eli@siliconsprawl.com>2010-03-09 00:15:32 -0600
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-11 11:35:33 -0700
commitb9eafe438051f4dfde53227e609c932642d6dc8f (patch)
tree490f9b179ddf21e52ea87abfd405ee480b961085 /drivers/staging/frontier
parent69121fa8dc596a574a6c652c1717861eacc8dd8b (diff)
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: Eli Lindsey <eli@siliconsprawl.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/frontier')
-rw-r--r--drivers/staging/frontier/tranzport.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/frontier/tranzport.c b/drivers/staging/frontier/tranzport.c
index 1f91001b1347..f9ab4f32daa8 100644
--- a/drivers/staging/frontier/tranzport.c
+++ b/drivers/staging/frontier/tranzport.c
@@ -198,7 +198,9 @@ static void usb_tranzport_abort_transfers(struct usb_tranzport *dev)
{ \
struct usb_interface *intf = to_usb_interface(dev); \
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; \
return count; \
} \