mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 23:15:10 +03:00
[iscsi] Add missing "break" statements
iscsi_tx_done() is missing "break" statements at the end of each case. (Fortunately, this happens not to cause a bug in practice, since iscsi_login_request_done() is effectively a no-op when completing a data-out PDU.) Reported-by: Wissam Shoukair <wissams@mellanox.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1439,8 +1439,10 @@ static void iscsi_tx_done ( struct iscsi_session *iscsi ) {
|
|||||||
switch ( common->opcode & ISCSI_OPCODE_MASK ) {
|
switch ( common->opcode & ISCSI_OPCODE_MASK ) {
|
||||||
case ISCSI_OPCODE_DATA_OUT:
|
case ISCSI_OPCODE_DATA_OUT:
|
||||||
iscsi_data_out_done ( iscsi );
|
iscsi_data_out_done ( iscsi );
|
||||||
|
break;
|
||||||
case ISCSI_OPCODE_LOGIN_REQUEST:
|
case ISCSI_OPCODE_LOGIN_REQUEST:
|
||||||
iscsi_login_request_done ( iscsi );
|
iscsi_login_request_done ( iscsi );
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
/* No action */
|
/* No action */
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user