From 55f4e4a5ec657a017e3bf75299ad71fd1c968dd3 Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Tue, 21 Oct 2008 07:00:00 -0700 Subject: Initial Contribution --- usb-linux.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'usb-linux.c') diff --git a/usb-linux.c b/usb-linux.c index 0a13753..aa1ded2 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -26,7 +26,6 @@ #if defined(__linux__) #include #include -#include #include #include @@ -58,7 +57,7 @@ typedef struct USBHostDevice { int fd; } USBHostDevice; -static void usb_host_handle_reset(USBDevice *dev) +static void usb_host_handle_reset(USBDevice *dev, int destroy) { #if 0 USBHostDevice *s = (USBHostDevice *)dev; @@ -68,15 +67,6 @@ static void usb_host_handle_reset(USBDevice *dev) #endif } -static void usb_host_handle_destroy(USBDevice *dev) -{ - USBHostDevice *s = (USBHostDevice *)dev; - - if (s->fd >= 0) - close(s->fd); - qemu_free(s); -} - static int usb_host_handle_control(USBDevice *dev, int request, int value, @@ -245,7 +235,6 @@ USBDevice *usb_host_device_open(const char *devname) dev->dev.handle_reset = usb_host_handle_reset; dev->dev.handle_control = usb_host_handle_control; dev->dev.handle_data = usb_host_handle_data; - dev->dev.handle_destroy = usb_host_handle_destroy; if (product_name[0] == '\0') snprintf(dev->dev.devname, sizeof(dev->dev.devname), -- cgit v1.1