Skip to content

Commit

Permalink
USB: kill dead code from hub.c
Browse files Browse the repository at this point in the history
this kills residual obsoletet code from hub.c

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Mar 10, 2007
1 parent 7bc4b81 commit 5bb16d1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/usb/core/hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1281,12 +1281,6 @@ int usb_new_device(struct usb_device *udev)
{
int err;

/* Lock ourself into memory in order to keep a probe sequence
* sleeping in a new thread from allowing us to be unloaded.
*/
if (!try_module_get(THIS_MODULE))
return -EINVAL;

/* Determine quirks */
usb_detect_quirks(udev);

Expand Down Expand Up @@ -1390,7 +1384,6 @@ int usb_new_device(struct usb_device *udev)
usb_autoresume_device(udev->parent);

exit:
module_put(THIS_MODULE);
return err;

fail:
Expand Down

0 comments on commit 5bb16d1

Please sign in to comment.