Skip to content

Commit

Permalink
staging: frontier: switch to strict_strtoul in tranzport.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eli Lindsey authored and Greg Kroah-Hartman committed May 11, 2010
1 parent 69121fa commit b9eafe4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/staging/frontier/tranzport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
} \
Expand Down

0 comments on commit b9eafe4

Please sign in to comment.