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>
This commit is contained in:
Eli Lindsey 2010-03-09 00:15:32 -06:00 committed by Greg Kroah-Hartman
parent 69121fa8dc
commit b9eafe4380
1 changed files with 3 additions and 1 deletions

View File

@ -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; \
} \