mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-01 13:50:38 -07:00
cleanup: Drop pointless label at end of function
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Acked-by: Corey Minyard <cminyard@mvista.com> Message-ID: <20250407082643.2310002-4-armbru@redhat.com>
This commit is contained in:
parent
8a2b516ba2
commit
abb55b1aba
4 changed files with 7 additions and 14 deletions
|
|
@ -213,7 +213,7 @@ static void ipmi_bmc_extern_handle_command(IPMIBmc *b,
|
|||
rsp[2] = err;
|
||||
ibe->waiting_rsp = false;
|
||||
k->handle_rsp(s, msg_id, rsp, 3);
|
||||
goto out;
|
||||
return;
|
||||
}
|
||||
|
||||
addchar(ibe, msg_id);
|
||||
|
|
@ -228,8 +228,6 @@ static void ipmi_bmc_extern_handle_command(IPMIBmc *b,
|
|||
|
||||
/* Start the transmit */
|
||||
continue_send(ibe);
|
||||
|
||||
out:
|
||||
}
|
||||
|
||||
static void handle_hw_op(IPMIBmcExtern *ibe, unsigned char hw_op)
|
||||
|
|
|
|||
|
|
@ -465,13 +465,12 @@ void ipmi_bmc_gen_event(IPMIBmc *b, uint8_t *evt, bool log)
|
|||
}
|
||||
|
||||
if (ibs->msg_flags & IPMI_BMC_MSG_FLAG_EVT_BUF_FULL) {
|
||||
goto out;
|
||||
return;
|
||||
}
|
||||
|
||||
memcpy(ibs->evtbuf, evt, 16);
|
||||
ibs->msg_flags |= IPMI_BMC_MSG_FLAG_EVT_BUF_FULL;
|
||||
k->set_atn(s, 1, attn_irq_enabled(ibs));
|
||||
out:
|
||||
}
|
||||
static void gen_event(IPMIBmcSim *ibs, unsigned int sens_num, uint8_t deassert,
|
||||
uint8_t evd1, uint8_t evd2, uint8_t evd3)
|
||||
|
|
@ -996,7 +995,7 @@ static void get_msg(IPMIBmcSim *ibs,
|
|||
|
||||
if (QTAILQ_EMPTY(&ibs->rcvbufs)) {
|
||||
rsp_buffer_set_error(rsp, 0x80); /* Queue empty */
|
||||
goto out;
|
||||
return;
|
||||
}
|
||||
rsp_buffer_push(rsp, 0); /* Channel 0 */
|
||||
msg = QTAILQ_FIRST(&ibs->rcvbufs);
|
||||
|
|
@ -1011,8 +1010,6 @@ static void get_msg(IPMIBmcSim *ibs,
|
|||
ibs->msg_flags &= ~IPMI_BMC_MSG_FLAG_RCV_MSG_QUEUE;
|
||||
k->set_atn(s, attn_set(ibs), attn_irq_enabled(ibs));
|
||||
}
|
||||
|
||||
out:
|
||||
}
|
||||
|
||||
static unsigned char
|
||||
|
|
|
|||
|
|
@ -98,14 +98,14 @@ static void ipmi_bt_handle_event(IPMIInterface *ii)
|
|||
IPMIBT *ib = iic->get_backend_data(ii);
|
||||
|
||||
if (ib->inlen < 4) {
|
||||
goto out;
|
||||
return;
|
||||
}
|
||||
/* Note that overruns are handled by handle_command */
|
||||
if (ib->inmsg[0] != (ib->inlen - 1)) {
|
||||
/* Length mismatch, just ignore. */
|
||||
IPMI_BT_SET_BBUSY(ib->control_reg, 1);
|
||||
ib->inlen = 0;
|
||||
goto out;
|
||||
return;
|
||||
}
|
||||
if ((ib->inmsg[1] == (IPMI_NETFN_APP << 2)) &&
|
||||
(ib->inmsg[3] == IPMI_CMD_GET_BT_INTF_CAP)) {
|
||||
|
|
@ -136,7 +136,7 @@ static void ipmi_bt_handle_event(IPMIInterface *ii)
|
|||
IPMI_BT_SET_B2H_IRQ(ib->mask_reg, 1);
|
||||
ipmi_bt_raise_irq(ib);
|
||||
}
|
||||
goto out;
|
||||
return;
|
||||
}
|
||||
ib->waiting_seq = ib->inmsg[2];
|
||||
ib->inmsg[2] = ib->inmsg[1];
|
||||
|
|
@ -145,7 +145,6 @@ static void ipmi_bt_handle_event(IPMIInterface *ii)
|
|||
bk->handle_command(ib->bmc, ib->inmsg + 2, ib->inlen - 2,
|
||||
sizeof(ib->inmsg), ib->waiting_rsp);
|
||||
}
|
||||
out:
|
||||
}
|
||||
|
||||
static void ipmi_bt_handle_rsp(IPMIInterface *ii, uint8_t msg_id,
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ static void ipmi_kcs_handle_event(IPMIInterface *ii)
|
|||
ik->outpos = 0;
|
||||
bk->handle_command(ik->bmc, ik->inmsg, ik->inlen, sizeof(ik->inmsg),
|
||||
ik->waiting_rsp);
|
||||
goto out_noibf;
|
||||
return;
|
||||
} else if (ik->cmd_reg == IPMI_KCS_WRITE_END_CMD) {
|
||||
ik->cmd_reg = -1;
|
||||
ik->write_end = 1;
|
||||
|
|
@ -197,7 +197,6 @@ static void ipmi_kcs_handle_event(IPMIInterface *ii)
|
|||
ik->cmd_reg = -1;
|
||||
ik->data_in_reg = -1;
|
||||
IPMI_KCS_SET_IBF(ik->status_reg, 0);
|
||||
out_noibf:
|
||||
}
|
||||
|
||||
static void ipmi_kcs_handle_rsp(IPMIInterface *ii, uint8_t msg_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue