summaryrefslogtreecommitdiff
path: root/extras/usb_id/usb_id.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-04-11 19:33:51 +0200
committerKay Sievers <kay.sievers@suse.de>2006-04-11 19:33:51 +0200
commit485fd28cfa03d2d0b682d6ddb30bdef1d249e5fd (patch)
tree5c64ee5a1c2d2a0195cfd6ccfda56619f7d7ea78 /extras/usb_id/usb_id.c
parent6464f0ea2b1c62692c7032abecc1a794d2ab7dee (diff)
usb_id: remove uneeded code
Diffstat (limited to 'extras/usb_id/usb_id.c')
-rw-r--r--extras/usb_id/usb_id.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/extras/usb_id/usb_id.c b/extras/usb_id/usb_id.c
index 783d546b26..85c6beda40 100644
--- a/extras/usb_id/usb_id.c
+++ b/extras/usb_id/usb_id.c
@@ -61,7 +61,6 @@ static char type_str[16];
static int use_usb_info;
static int use_num_info;
static int export;
-static int debug;
static void set_str(char *to, const char *from, size_t count)
{
@@ -371,14 +370,6 @@ int main(int argc, char **argv)
dbg("argc is %d", argc);
- /* sysfs path can be overridden for testing */
- env = getenv("SYSFS_PATH");
- if (env) {
- strlcpy(sysfs_path, env, sizeof(sysfs_path));
- remove_trailing_chars(sysfs_path, '/');
- } else
- strcpy(sysfs_path, "/sys");
-
while ((option = getopt(argc, argv, "dnux")) != -1 ) {
if (optarg)
dbg("option '%c' arg '%s'", option, optarg);
@@ -386,9 +377,6 @@ int main(int argc, char **argv)
dbg("option '%c'", option);
switch (option) {
- case 'd':
- debug = 1;
- break;
case 'n':
use_num_info = 1;
use_usb_info = 1;