Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248708
b: refs/heads/master
c: edf847d
h: refs/heads/master
v: v3
  • Loading branch information
Libor Pechacek authored and Greg Kroah-Hartman committed Apr 13, 2011
1 parent 7297bb0 commit abbe8e8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 806e8f8fcc27e1753947bd9f059ba2316cf8f92a
refs/heads/master: edf847decc4159128041d2a81f8d93e6eb567ecb
8 changes: 0 additions & 8 deletions trunk/drivers/usb/core/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,6 @@ EXPORT_SYMBOL_GPL(usb_register_dev);
void usb_deregister_dev(struct usb_interface *intf,
struct usb_class_driver *class_driver)
{
int minor_base = class_driver->minor_base;
char name[20];

#ifdef CONFIG_USB_DYNAMIC_MINORS
minor_base = 0;
#endif

if (intf->minor == -1)
return;

Expand All @@ -252,7 +245,6 @@ void usb_deregister_dev(struct usb_interface *intf,
usb_minors[intf->minor] = NULL;
up_write(&minor_rwsem);

snprintf(name, sizeof(name), class_driver->name, intf->minor - minor_base);
device_destroy(usb_class->class, MKDEV(USB_MAJOR, intf->minor));
intf->usb_dev = NULL;
intf->minor = -1;
Expand Down

0 comments on commit abbe8e8

Please sign in to comment.