static void usb_mtp_handle_reset(USBDevice *dev)

{

    MTPState *s = USB_MTP(dev);



    trace_usb_mtp_reset(s->dev.addr);



#ifdef __linux__

    usb_mtp_inotify_cleanup(s);

#endif

    usb_mtp_object_free(s, QTAILQ_FIRST(&s->objects));

    s->session = 0;

    usb_mtp_data_free(s->data_in);

    s->data_in = NULL;

    usb_mtp_data_free(s->data_out);

    s->data_out = NULL;

    g_free(s->result);

    s->result = NULL;

}

static void usb_mtp_handle_reset(USBDevice *dev)

{

    MTPState *s = USB_MTP(dev);



    trace_usb_mtp_reset(s->dev.addr);



#ifdef __linux__

    usb_mtp_inotify_cleanup(s);

#endif

    usb_mtp_object_free(s, QTAILQ_FIRST(&s->objects));

    s->session = 0;

    usb_mtp_data_free(s->data_in);

    s->data_in = NULL;

    usb_mtp_data_free(s->data_out);

    s->data_out = NULL;

    g_free(s->result);

    s->result = NULL;

}

#ifdef __linux__ #ifdef __linux__ #ifdef __linux__ #ifdef __linux__ #ifdef __linux__ #ifdef __linux__ #ifdef __linux__ #ifdef __linux__ #ifdef __linux__ #ifdef __linux__
static void FUNC_0(USBDevice *VAR_0)

{

    MTPState *s = USB_MTP(VAR_0);



    trace_usb_mtp_reset(s->VAR_0.addr);



#ifdef __linux__

    usb_mtp_inotify_cleanup(s);

#endif

    usb_mtp_object_free(s, QTAILQ_FIRST(&s->objects));

    s->session = 0;

    usb_mtp_data_free(s->data_in);

    s->data_in = NULL;

    usb_mtp_data_free(s->data_out);

    s->data_out = NULL;

    g_free(s->result);

    s->result = NULL;

}

static void FUNC_0(USBDevice *VAR_0)
{ MTPState *s = USB_MTP(VAR_0); trace_usb_mtp_reset(s->VAR_0.addr); #ifdef __linux__
usb_mtp_inotify_cleanup(s); #endif
usb_mtp_object_free(s, QTAILQ_FIRST(&s->objects)); s->session = 0; usb_mtp_data_free(s->data_in); s->data_in = NULL; usb_mtp_data_free(s->data_out); s->data_out = NULL; g_free(s->result); s->result = NULL; }