]> git.proxmox.com Git - qemu.git/commitdiff
usb: Remove disabled monitor_printf() in usb_read_file()
authorMarkus Armbruster <armbru@redhat.com>
Wed, 17 Feb 2010 13:34:57 +0000 (14:34 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 16 Mar 2010 15:55:04 +0000 (16:55 +0100)
The monitor_printf() reports failure.  Printing is wrong, because the
caller tries various arguments, and expects the function to fail for
some or all.

Disabled since commit 26a9e82a.  Remove it.

usb-linux.c

index a9c15c6d1d2004a7ab2ae089c02ab4aa602b5f4d..d0d7cff496f29839aa8b36107ffc254ae3cb141f 100644 (file)
@@ -1188,9 +1188,6 @@ static int usb_host_scan_dev(void *opaque, USBScanFunc *func)
  */
 static int usb_host_read_file(char *line, size_t line_size, const char *device_file, const char *device_name)
 {
-#if 0
-    Monitor *mon = cur_mon;
-#endif
     FILE *f;
     int ret = 0;
     char filename[PATH_MAX];
@@ -1201,11 +1198,6 @@ static int usb_host_read_file(char *line, size_t line_size, const char *device_f
     if (f) {
         ret = fgets(line, line_size, f) != NULL;
         fclose(f);
-#if 0
-    } else {
-        if (mon)
-            monitor_printf(mon, "husb: could not open %s\n", filename);
-#endif
     }
 
     return ret;