Patchwork [v2,RESEND,5/5] usb-linux.c: remove write-only variable

login
register
mail settings
Submitter Paolo Bonzini
Date Feb. 4, 2010, 1:31 p.m.
Message ID <1265290313-31738-6-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/44487/
State New
Headers show

Comments

Paolo Bonzini - Feb. 4, 2010, 1:31 p.m.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 usb-linux.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Patch

diff --git a/usb-linux.c b/usb-linux.c
index 1aaa595..ba8facf 100644
--- a/usb-linux.c
+++ b/usb-linux.c
@@ -1007,11 +1007,9 @@  USBDevice *usb_host_device_open(const char *devname)
 {
     struct USBAutoFilter filter;
     USBDevice *dev;
-    USBHostDevice *s;
     char *p;
 
     dev = usb_create(NULL /* FIXME */, "usb-host");
-    s = DO_UPCAST(USBHostDevice, dev, dev);
 
     if (strstr(devname, "auto:")) {
         if (parse_filter(devname, &filter) < 0)