mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07: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:
committed by
Stefan Hajnoczi
parent
58455eb9f2
commit
4d5b97da35
@@ -103,7 +103,6 @@ static void qed_write_table_cb(void *opaque, int ret)
|
||||
out:
|
||||
qemu_vfree(write_table_cb->table);
|
||||
gencb_complete(&write_table_cb->gencb, ret);
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -830,7 +830,6 @@ exit:
|
||||
QSIMPLEQ_FOREACH_SAFE(states, &snap_bdrv_states, entry, next) {
|
||||
g_free(states);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -505,7 +505,6 @@ static void virtfs_reset(V9fsPDU *pdu)
|
||||
error_report("9pfs:%s: One or more uncluncked fids "
|
||||
"found during reset", __func__);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
#define P9_QID_TYPE_DIR 0x80
|
||||
@@ -934,7 +933,6 @@ static void v9fs_version(void *opaque)
|
||||
out:
|
||||
complete_pdu(s, pdu, offset);
|
||||
v9fs_string_free(&version);
|
||||
return;
|
||||
}
|
||||
|
||||
static void v9fs_attach(void *opaque)
|
||||
@@ -1314,7 +1312,6 @@ out_nofid:
|
||||
g_free(wnames);
|
||||
g_free(qids);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
static int32_t get_iounit(V9fsPDU *pdu, V9fsPath *path)
|
||||
@@ -2257,7 +2254,6 @@ static void v9fs_flush(void *opaque)
|
||||
free_pdu(pdu->s, cancel_pdu);
|
||||
}
|
||||
complete_pdu(s, pdu, 7);
|
||||
return;
|
||||
}
|
||||
|
||||
static void v9fs_link(void *opaque)
|
||||
@@ -2763,7 +2759,6 @@ out:
|
||||
put_fid(pdu, fidp);
|
||||
out_nofid:
|
||||
complete_pdu(s, pdu, retval);
|
||||
return;
|
||||
}
|
||||
|
||||
static void v9fs_mknod(void *opaque)
|
||||
|
||||
@@ -878,8 +878,6 @@ void s1d13745_write_block(void *opaque, int dc,
|
||||
len -= 2;
|
||||
buf += 2;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
static void blizzard_update_display(void *opaque)
|
||||
|
||||
@@ -786,7 +786,6 @@ static void bt_hci_lmp_connection_request(struct bt_link_s *link)
|
||||
memcpy(¶ms.dev_class, &link->host->class, sizeof(params.dev_class));
|
||||
params.link_type = ACL_LINK;
|
||||
bt_hci_event(hci, EVT_CONN_REQUEST, ¶ms, EVT_CONN_REQUEST_SIZE);
|
||||
return;
|
||||
}
|
||||
|
||||
static void bt_hci_conn_accept_timeout(void *opaque)
|
||||
|
||||
@@ -89,5 +89,4 @@ err:
|
||||
if (dinfo) {
|
||||
drive_put_ref(dinfo);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -347,8 +347,6 @@ static void exynos4210_combiner_write(void *opaque, target_phys_addr_t offset,
|
||||
TARGET_FMT_plx "\n", offset);
|
||||
break;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/* Get combiner group and bit from irq number */
|
||||
@@ -380,8 +378,6 @@ static void exynos4210_combiner_handler(void *opaque, int irq, int level)
|
||||
}
|
||||
|
||||
exynos4210_combiner_update(s, group_n);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
static void exynos4210_combiner_reset(DeviceState *d)
|
||||
|
||||
@@ -193,8 +193,6 @@ static void exynos4210_irq_handler(void *opaque, int irq, int level)
|
||||
|
||||
/* Bypass */
|
||||
qemu_set_irq(s->board_irqs[irq], level);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -410,8 +408,6 @@ static void exynos4210_irq_gate_handler(void *opaque, int irq, int level)
|
||||
}
|
||||
|
||||
qemu_irq_lower(s->out);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
static void exynos4210_irq_gate_reset(DeviceState *d)
|
||||
|
||||
@@ -574,8 +574,6 @@ static void exynos4210_gfrc_event(void *opaque)
|
||||
exynos4210_gfrc_set_count(&s->g_timer, distance);
|
||||
|
||||
exynos4210_gfrc_start(&s->g_timer);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -1286,8 +1286,6 @@ static void fdctrl_start_transfer(FDCtrl *fdctrl, int direction)
|
||||
fdctrl->msr |= FD_MSR_DIO;
|
||||
/* IO based transfer: calculate len */
|
||||
fdctrl_raise_irq(fdctrl, FD_SR0_SEEK);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/* Prepare a transfer of deleted data */
|
||||
|
||||
@@ -107,5 +107,4 @@ void framebuffer_update_display(
|
||||
DIRTY_MEMORY_VGA);
|
||||
*first_row = first;
|
||||
*last_row = last;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -89,7 +89,6 @@ static void pmac_ide_atapi_transfer_cb(void *opaque, int ret)
|
||||
done:
|
||||
bdrv_acct_done(s->bs, &s->acct);
|
||||
io->dma_end(opaque);
|
||||
return;
|
||||
}
|
||||
|
||||
static void pmac_ide_transfer_cb(void *opaque, int ret)
|
||||
|
||||
@@ -149,7 +149,6 @@ static void ivshmem_IntrStatus_write(IVShmemState *s, uint32_t val)
|
||||
s->intrstatus = val;
|
||||
|
||||
ivshmem_update_irq(s, val);
|
||||
return;
|
||||
}
|
||||
|
||||
static uint32_t ivshmem_IntrStatus_read(IVShmemState *s)
|
||||
@@ -510,8 +509,6 @@ static void ivshmem_read(void *opaque, const uint8_t * buf, int flags)
|
||||
if (ivshmem_has_feature(s, IVSHMEM_IOEVENTFD)) {
|
||||
ivshmem_add_eventfd(s, incoming_posn, guest_max_eventfd);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/* Select the MSI-X vectors used by device.
|
||||
@@ -536,7 +533,6 @@ static void ivshmem_reset(DeviceState *d)
|
||||
|
||||
s->intrstatus = 0;
|
||||
ivshmem_use_msix(s);
|
||||
return;
|
||||
}
|
||||
|
||||
static uint64_t ivshmem_get_size(IVShmemState * s) {
|
||||
|
||||
@@ -652,7 +652,6 @@ static void megasas_finish_dcmd(MegasasCmd *cmd, uint32_t iov_size)
|
||||
}
|
||||
}
|
||||
cmd->iov_size = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
static int megasas_ctrl_get_info(MegasasState *s, MegasasCmd *cmd)
|
||||
|
||||
@@ -366,7 +366,6 @@ void msix_uninit(PCIDevice *dev, MemoryRegion *table_bar, MemoryRegion *pba_bar)
|
||||
g_free(dev->msix_entry_used);
|
||||
dev->msix_entry_used = NULL;
|
||||
dev->cap_present &= ~QEMU_PCI_CAP_MSIX;
|
||||
return;
|
||||
}
|
||||
|
||||
void msix_uninit_exclusive_bar(PCIDevice *dev)
|
||||
|
||||
@@ -442,7 +442,6 @@ static void pflash_write(pflash_t *pfl, target_phys_addr_t offset,
|
||||
pfl->bypass = 0;
|
||||
pfl->wcycle = 0;
|
||||
pfl->cmd = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -474,7 +474,6 @@ static void pflash_write (pflash_t *pfl, target_phys_addr_t offset,
|
||||
do_bypass:
|
||||
pfl->wcycle = 2;
|
||||
pfl->cmd = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -172,7 +172,6 @@ static void pxa27x_keyboard_event (PXA2xxKeyPadState *kp, int keycode)
|
||||
kp->kpc |= KPC_MI;
|
||||
qemu_irq_raise(kp->irq);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
static uint64_t pxa2xx_keypad_read(void *opaque, target_phys_addr_t offset,
|
||||
|
||||
@@ -822,7 +822,6 @@ static void complete (SB16State *s)
|
||||
|
||||
ldebug ("\n");
|
||||
s->cmd = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
static void legacy_reset (SB16State *s)
|
||||
|
||||
@@ -1437,7 +1437,6 @@ invalid_param_len:
|
||||
|
||||
invalid_field:
|
||||
scsi_check_condition(r, SENSE_CODE(INVALID_FIELD));
|
||||
return;
|
||||
}
|
||||
|
||||
static inline bool check_lba_range(SCSIDiskState *s,
|
||||
@@ -1535,7 +1534,6 @@ static void scsi_disk_emulate_unmap(SCSIDiskReq *r, uint8_t *inbuf)
|
||||
|
||||
invalid_param_len:
|
||||
scsi_check_condition(r, SENSE_CODE(INVALID_PARAM_LEN));
|
||||
return;
|
||||
}
|
||||
|
||||
static void scsi_disk_emulate_write_data(SCSIRequest *req)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user