Commit a336ed51 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: removed unused DEVFS /sbin/hotplug attribute

parent 6370591e
...@@ -556,14 +556,6 @@ static int usb_hotplug (struct device *dev, char **envp, int num_envp, ...@@ -556,14 +556,6 @@ static int usb_hotplug (struct device *dev, char **envp, int num_envp,
* *
* FIXME reduce hardwired intelligence here * FIXME reduce hardwired intelligence here
*/ */
envp [i++] = scratch;
length += snprintf (scratch, buffer_size - length,
"%s", "DEVFS=/proc/bus/usb");
if ((buffer_size - length <= 0) || (i >= num_envp))
return -ENOMEM;
++length;
scratch += length;
envp [i++] = scratch; envp [i++] = scratch;
length += snprintf (scratch, buffer_size - length, length += snprintf (scratch, buffer_size - length,
"DEVICE=/proc/bus/usb/%03d/%03d", "DEVICE=/proc/bus/usb/%03d/%03d",
......
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