summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRoland Dreier <roland@topspin.com>2004-09-29 03:26:15 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2004-09-29 03:26:15 -0700
commit6e20f10823dcecd65019dc42ef7e63f392abe4ed (patch)
treeb93b02264f4d23a5f1ceca949e019068091cbdab /include
parente2661e66605c57210ea9e689b51fc63ac001c8b3 (diff)
[PATCH] USB: use add_hotplug_env_var() in core/usb.c
Use the new add_hotplug_env_var() function in drivers/usb/core/usb.c. In addition to cleaning up the code, this fixes a (probably harmless) bug here: for each value added to the environment, the code did length += sprintf(...); and then scratch += length; which means that we skip the sum of the lengths of all the values we've put so far, rather than just the length of the value we just put. This is probably harmless since we're unlikely to run out of space but if nothing else it's setting a bad example.... I've tested this on a system with USB floppy and CD-ROM; hotplug gets the same environment with the patch as without. Signed-off-by: Roland Dreier <roland@topspin.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions