Skip to content

Commit

Permalink
hso: remove claiming and releasing of USB interface
Browse files Browse the repository at this point in the history
No need to reclaim the same USB interface beeing probed.
Releasing interface does nothing also.

This is already in for a long time in off-kernel hso driver
and no regresions were noticed for this change.

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Cc: Denis Joseph Barrow <D.Barow@option.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Paulius Zaleckas authored and David S. Miller committed Feb 27, 2009
1 parent 6ceffd4 commit a6f26e4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/net/usb/hso.c
Original file line number Diff line number Diff line change
Expand Up @@ -2978,8 +2978,6 @@ static int hso_probe(struct usb_interface *interface,
goto exit;
}

usb_driver_claim_interface(&hso_driver, interface, hso_dev);

/* save our data pointer in this device */
usb_set_intfdata(interface, hso_dev);

Expand All @@ -2997,8 +2995,6 @@ static void hso_disconnect(struct usb_interface *interface)

/* remove reference of our private data */
usb_set_intfdata(interface, NULL);

usb_driver_release_interface(&hso_driver, interface);
}

static void async_get_intf(struct work_struct *data)
Expand Down

0 comments on commit a6f26e4

Please sign in to comment.