mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
cleanup useless return sentence
This patch cleans up return sentences in the end of void functions. Reported-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Amos Kong <akong@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
This commit is contained in:
parent
58455eb9f2
commit
4d5b97da35
41 changed files with 0 additions and 67 deletions
|
@ -576,7 +576,6 @@ bad_target:
|
|||
*/
|
||||
usb_uas_queue_response(uas, req->tag, UAS_RC_INVALID_INFO_UNIT, 0);
|
||||
g_free(req);
|
||||
return;
|
||||
}
|
||||
|
||||
static void usb_uas_task(UASDevice *uas, uas_ui *ui)
|
||||
|
@ -640,7 +639,6 @@ bad_target:
|
|||
|
||||
incorrect_lun:
|
||||
usb_uas_queue_response(uas, tag, UAS_RC_INCORRECT_LUN, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
static int usb_uas_handle_data(USBDevice *dev, USBPacket *p)
|
||||
|
|
|
@ -1470,8 +1470,6 @@ static void ohci_port_set_status(OHCIState *ohci, int portnum, uint32_t val)
|
|||
|
||||
if (old_state != port->ctrl)
|
||||
ohci_set_interrupt(ohci, OHCI_INTR_RHSC);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
static uint64_t ohci_mem_read(void *opaque,
|
||||
|
|
|
@ -807,7 +807,6 @@ static void xhci_events_update(XHCIState *xhci, int v)
|
|||
DPRINTF("xhci_events_update(): event ring no longer full\n");
|
||||
intr->er_full = 0;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
static void xhci_event(XHCIState *xhci, XHCIEvent *event, int v)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue