lib/iscsi: get rid of some unreachable code.
Fix kw warning 12457 Signed-off-by: Seth Howell <seth.howell@intel.com> Change-Id: I5ab34269eb6a55a012b8fb4e109a42a3508e4193 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1951 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
44e2f5106a
commit
f18f8e930a
@ -3834,10 +3834,8 @@ iscsi_pdu_payload_op_nopout(struct spdk_iscsi_conn *conn, struct spdk_iscsi_pdu
|
|||||||
|
|
||||||
/* response PDU */
|
/* response PDU */
|
||||||
rsp_pdu = iscsi_get_pdu(conn);
|
rsp_pdu = iscsi_get_pdu(conn);
|
||||||
if (rsp_pdu == NULL) {
|
assert(rsp_pdu != NULL);
|
||||||
free(data);
|
|
||||||
return SPDK_ISCSI_CONNECTION_FATAL;
|
|
||||||
}
|
|
||||||
rsph = (struct iscsi_bhs_nop_in *)&rsp_pdu->bhs;
|
rsph = (struct iscsi_bhs_nop_in *)&rsp_pdu->bhs;
|
||||||
rsp_pdu->data = data;
|
rsp_pdu->data = data;
|
||||||
rsph->opcode = ISCSI_OP_NOPIN;
|
rsph->opcode = ISCSI_OP_NOPIN;
|
||||||
|
Loading…
Reference in New Issue
Block a user