summaryrefslogtreecommitdiff
path: root/drivers/staging/usbip
diff options
context:
space:
mode:
authorKurt Kanzenbach <ly80toro@cip.cs.fau.de>2013-04-04 16:03:13 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-05 14:22:51 -0700
commite71e781ba4f0db19775635443a208ba69d403ad6 (patch)
tree12fa03bc7ccc4d199b39bf7818c8dfefc8b43c3a /drivers/staging/usbip
parente697949944c1427816e3cd01f8316040d7bddc57 (diff)
staging: usbip: userspace: removed unnecessary code
Since no usbip_name function is used in usbipd, it's not necessary to parse "usb.ids" file at startup. Signed-off-by: Kurt Kanzenbach <ly80toro@cip.cs.fau.de> Signed-off-by: Stefan Reif <ke42caxa@cip.cs.fau.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/usbip')
-rw-r--r--drivers/staging/usbip/userspace/src/usbipd.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/usbip/userspace/src/usbipd.c b/drivers/staging/usbip/userspace/src/usbipd.c
index 3f10c5183ffc..3e913b861dc2 100644
--- a/drivers/staging/usbip/userspace/src/usbipd.c
+++ b/drivers/staging/usbip/userspace/src/usbipd.c
@@ -436,9 +436,6 @@ static int do_standalone_mode(int daemonize)
struct timespec timeout;
sigset_t sigmask;
- if (usbip_names_init(USBIDS_FILE))
- err("failed to open %s", USBIDS_FILE);
-
if (usbip_host_driver_open()) {
err("please load " USBIP_CORE_MOD_NAME ".ko and "
USBIP_HOST_DRV_NAME ".ko!");
@@ -507,7 +504,6 @@ static int do_standalone_mode(int daemonize)
free(fds);
freeaddrinfo(ai_head);
usbip_host_driver_close();
- usbip_names_free();
return 0;
}