mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
treewide: Remove the unnecessary space before semicolon
%s/return ;/return; Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <20221024072802.457832-1-bmeng@tinylab.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
fe8a7390c1
commit
c1dadb8462
11 changed files with 15 additions and 15 deletions
|
@ -1786,7 +1786,7 @@ static void coroutine_fn v9fs_walk(void *opaque)
|
||||||
err = pdu_unmarshal(pdu, offset, "ddw", &fid, &newfid, &nwnames);
|
err = pdu_unmarshal(pdu, offset, "ddw", &fid, &newfid, &nwnames);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
pdu_complete(pdu, err);
|
pdu_complete(pdu, err);
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
offset += err;
|
offset += err;
|
||||||
|
|
||||||
|
|
|
@ -1328,7 +1328,7 @@ static void pl330_debug_exec(PL330State *s)
|
||||||
}
|
}
|
||||||
if (!insn) {
|
if (!insn) {
|
||||||
pl330_fault(ch, PL330_FAULT_UNDEF_INSTR | PL330_FAULT_DBG_INSTR);
|
pl330_fault(ch, PL330_FAULT_UNDEF_INSTR | PL330_FAULT_DBG_INSTR);
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
ch->stall = 0;
|
ch->stall = 0;
|
||||||
insn->exec(ch, opcode, args, insn->size - 1);
|
insn->exec(ch, opcode, args, insn->size - 1);
|
||||||
|
|
|
@ -431,7 +431,7 @@ void can_sja_mem_write(CanSJA1000State *s, hwaddr addr, uint64_t val,
|
||||||
(unsigned long long)val, (unsigned int)addr);
|
(unsigned long long)val, (unsigned int)addr);
|
||||||
|
|
||||||
if (addr > CAN_SJA_MEM_SIZE) {
|
if (addr > CAN_SJA_MEM_SIZE) {
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s->clock & 0x80) { /* PeliCAN Mode */
|
if (s->clock & 0x80) { /* PeliCAN Mode */
|
||||||
|
|
|
@ -57,7 +57,7 @@ static void update_events(RCMTState *cmt, int ch)
|
||||||
|
|
||||||
if ((cmt->cmstr & (1 << ch)) == 0) {
|
if ((cmt->cmstr & (1 << ch)) == 0) {
|
||||||
/* count disable, so not happened next event. */
|
/* count disable, so not happened next event. */
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
next_time = cmt->cmcor[ch] - cmt->cmcnt[ch];
|
next_time = cmt->cmcor[ch] - cmt->cmcnt[ch];
|
||||||
next_time *= NANOSECONDS_PER_SECOND;
|
next_time *= NANOSECONDS_PER_SECOND;
|
||||||
|
|
|
@ -67,18 +67,18 @@ static void update_events(RTMRState *tmr, int ch)
|
||||||
int i, event;
|
int i, event;
|
||||||
|
|
||||||
if (tmr->tccr[ch] == 0) {
|
if (tmr->tccr[ch] == 0) {
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
if (FIELD_EX8(tmr->tccr[ch], TCCR, CSS) == 0) {
|
if (FIELD_EX8(tmr->tccr[ch], TCCR, CSS) == 0) {
|
||||||
/* external clock mode */
|
/* external clock mode */
|
||||||
/* event not happened */
|
/* event not happened */
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
if (FIELD_EX8(tmr->tccr[0], TCCR, CSS) == CSS_CASCADING) {
|
if (FIELD_EX8(tmr->tccr[0], TCCR, CSS) == CSS_CASCADING) {
|
||||||
/* cascading mode */
|
/* cascading mode */
|
||||||
if (ch == 1) {
|
if (ch == 1) {
|
||||||
tmr->next[ch] = none;
|
tmr->next[ch] = none;
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
diff[cmia] = concat_reg(tmr->tcora) - concat_reg(tmr->tcnt);
|
diff[cmia] = concat_reg(tmr->tcora) - concat_reg(tmr->tcnt);
|
||||||
diff[cmib] = concat_reg(tmr->tcorb) - concat_reg(tmr->tcnt);
|
diff[cmib] = concat_reg(tmr->tcorb) - concat_reg(tmr->tcnt);
|
||||||
|
@ -384,7 +384,7 @@ static void timer_events(RTMRState *tmr, int ch)
|
||||||
tmr->tcorb[ch]) & 0xff;
|
tmr->tcorb[ch]) & 0xff;
|
||||||
} else {
|
} else {
|
||||||
if (ch == 1) {
|
if (ch == 1) {
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
tcnt = issue_event(tmr, ch, 16,
|
tcnt = issue_event(tmr, ch, 16,
|
||||||
concat_reg(tmr->tcnt),
|
concat_reg(tmr->tcnt),
|
||||||
|
|
|
@ -1675,7 +1675,7 @@ static void virtio_pci_device_plugged(DeviceState *d, Error **errp)
|
||||||
if (virtio_host_has_feature(vdev, VIRTIO_F_IOMMU_PLATFORM)) {
|
if (virtio_host_has_feature(vdev, VIRTIO_F_IOMMU_PLATFORM)) {
|
||||||
error_setg(errp, "VIRTIO_F_IOMMU_PLATFORM was supported by"
|
error_setg(errp, "VIRTIO_F_IOMMU_PLATFORM was supported by"
|
||||||
" neither legacy nor transitional device");
|
" neither legacy nor transitional device");
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Legacy and transitional devices use specific subsystem IDs.
|
* Legacy and transitional devices use specific subsystem IDs.
|
||||||
|
|
|
@ -117,7 +117,7 @@ static void glue(load_symbols, SZ)(struct elfhdr *ehdr, int fd, int must_swab,
|
||||||
shdr_table = load_at(fd, ehdr->e_shoff,
|
shdr_table = load_at(fd, ehdr->e_shoff,
|
||||||
sizeof(struct elf_shdr) * ehdr->e_shnum);
|
sizeof(struct elf_shdr) * ehdr->e_shnum);
|
||||||
if (!shdr_table) {
|
if (!shdr_table) {
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (must_swab) {
|
if (must_swab) {
|
||||||
|
|
|
@ -211,7 +211,7 @@ static void vext_set_elems_1s(void *base, uint32_t is_agnostic, uint32_t cnt,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (tot - cnt == 0) {
|
if (tot - cnt == 0) {
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
memset(base + cnt, -1, tot - cnt);
|
memset(base + cnt, -1, tot - cnt);
|
||||||
}
|
}
|
||||||
|
|
|
@ -286,7 +286,7 @@ void helper_suntil(CPURXState *env, uint32_t sz)
|
||||||
uint32_t tmp;
|
uint32_t tmp;
|
||||||
tcg_debug_assert(sz < 3);
|
tcg_debug_assert(sz < 3);
|
||||||
if (env->regs[3] == 0) {
|
if (env->regs[3] == 0) {
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
do {
|
do {
|
||||||
tmp = cpu_ldufn[sz](env, env->regs[1], GETPC());
|
tmp = cpu_ldufn[sz](env, env->regs[1], GETPC());
|
||||||
|
@ -305,7 +305,7 @@ void helper_swhile(CPURXState *env, uint32_t sz)
|
||||||
uint32_t tmp;
|
uint32_t tmp;
|
||||||
tcg_debug_assert(sz < 3);
|
tcg_debug_assert(sz < 3);
|
||||||
if (env->regs[3] == 0) {
|
if (env->regs[3] == 0) {
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
do {
|
do {
|
||||||
tmp = cpu_ldufn[sz](env, env->regs[1], GETPC());
|
tmp = cpu_ldufn[sz](env, env->regs[1], GETPC());
|
||||||
|
|
|
@ -373,7 +373,7 @@ void vnc_start_worker_thread(void)
|
||||||
VncJobQueue *q;
|
VncJobQueue *q;
|
||||||
|
|
||||||
if (vnc_worker_thread_running())
|
if (vnc_worker_thread_running())
|
||||||
return ;
|
return;
|
||||||
|
|
||||||
q = vnc_queue_init();
|
q = vnc_queue_init();
|
||||||
qemu_thread_create(&q->thread, "vnc_worker", vnc_worker_thread, q,
|
qemu_thread_create(&q->thread, "vnc_worker", vnc_worker_thread, q,
|
||||||
|
|
2
ui/vnc.c
2
ui/vnc.c
|
@ -3085,7 +3085,7 @@ static void vnc_rect_updated(VncDisplay *vd, int x, int y, struct timeval * tv)
|
||||||
|
|
||||||
rect = vnc_stat_rect(vd, x, y);
|
rect = vnc_stat_rect(vd, x, y);
|
||||||
if (rect->updated) {
|
if (rect->updated) {
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
rect->times[rect->idx] = *tv;
|
rect->times[rect->idx] = *tv;
|
||||||
rect->idx = (rect->idx + 1) % ARRAY_SIZE(rect->times);
|
rect->idx = (rect->idx + 1) % ARRAY_SIZE(rect->times);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue