summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibor Pechacek <lpechacek@suse.cz>2011-03-25 09:36:49 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-13 16:24:05 -0700
commitedf847decc4159128041d2a81f8d93e6eb567ecb (patch)
tree429c176d0f001dab92fc56fa8e13b05b80aef232
parent806e8f8fcc27e1753947bd9f059ba2316cf8f92a (diff)
downloadop-kernel-dev-edf847decc4159128041d2a81f8d93e6eb567ecb.zip
op-kernel-dev-edf847decc4159128041d2a81f8d93e6eb567ecb.tar.gz
USB: remove dead code from usb_deregister_dev()
The `name' variable is unused in usb_deregister_dev() since commit d6e5bcf (devfs: Remove the mode field from usb_class_driver as it's no longer needed). Signed-off-by: Libor Pechacek <lpechacek@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/core/file.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/usb/core/file.c b/drivers/usb/core/file.c
index cf6a542..99458c8 100644
--- a/drivers/usb/core/file.c
+++ b/drivers/usb/core/file.c
@@ -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;
@@ -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;
OpenPOWER on IntegriCloud