diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-25 11:47:20 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-25 11:47:20 +0000 |
commit | 5be8e1f258f67205555a79af20813d68ac5878e0 (patch) | |
tree | c726bfc2926cc6ae339c626cdae6cf8cbe5ad77f | |
parent | 40ea94a5d41148cd6b19fe4b9c47e17bb9dfeac1 (diff) |
Silence warnings about unused variables
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5535 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | usb-linux.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usb-linux.c b/usb-linux.c index a8dd897f20..c2a45304bb 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -76,6 +76,8 @@ static int usb_host_find_device(int *pbus_num, int *paddr, #define dprintf(...) #endif +#define USBDBG_DEVOPENED "husb: opened %s/devices\n" + #define USBPROCBUS_PATH "/proc/bus/usb" #define PRODUCT_NAME_SZ 32 #define MAX_ENDPOINTS 16 @@ -1262,8 +1264,6 @@ static int usb_host_scan(void *opaque, USBScanFunc *func) FILE *f = 0; DIR *dir = 0; int ret = 0; - const char *devices = "/devices"; - const char *opened = "husb: opened %s%s\n"; const char *fs_type[] = {"unknown", "proc", "dev", "sys"}; char devpath[PATH_MAX]; @@ -1275,7 +1275,7 @@ static int usb_host_scan(void *opaque, USBScanFunc *func) strcpy(devpath, USBPROCBUS_PATH); usb_fs_type = USB_FS_PROC; fclose(f); - dprintf(opened, USBPROCBUS_PATH, devices); + dprintf(USBDBG_DEVOPENED, USBPROCBUS_PATH); goto found_devices; } /* try additional methods if an access method hasn't been found yet */ @@ -1285,7 +1285,7 @@ static int usb_host_scan(void *opaque, USBScanFunc *func) strcpy(devpath, USBDEVBUS_PATH); usb_fs_type = USB_FS_DEV; fclose(f); - dprintf(opened, USBDEVBUS_PATH, devices); + dprintf(USBDBG_DEVOPENED, USBDEVBUS_PATH); goto found_devices; } dir = opendir(USBSYSBUS_PATH "/devices"); @@ -1294,7 +1294,7 @@ static int usb_host_scan(void *opaque, USBScanFunc *func) strcpy(devpath, USBDEVBUS_PATH); usb_fs_type = USB_FS_SYS; closedir(dir); - dprintf(opened, USBSYSBUS_PATH, devices); + dprintf(USBDBG_DEVOPENED, USBSYSBUS_PATH); goto found_devices; } found_devices: |