Commit cac51411 authored by Markus Elfring's avatar Markus Elfring Committed by Jason Gunthorpe

IB/iser: Delete an error message for a failed memory allocation in iser_send_data_out()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Reviewed-by: default avatarMax Gurtovoy <maxg@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 487f6683
...@@ -452,10 +452,8 @@ int iser_send_data_out(struct iscsi_conn *conn, ...@@ -452,10 +452,8 @@ int iser_send_data_out(struct iscsi_conn *conn,
__func__,(int)itt,(int)data_seg_len,(int)buf_offset); __func__,(int)itt,(int)data_seg_len,(int)buf_offset);
tx_desc = kmem_cache_zalloc(ig.desc_cache, GFP_ATOMIC); tx_desc = kmem_cache_zalloc(ig.desc_cache, GFP_ATOMIC);
if (tx_desc == NULL) { if (!tx_desc)
iser_err("Failed to alloc desc for post dataout\n");
return -ENOMEM; return -ENOMEM;
}
tx_desc->type = ISCSI_TX_DATAOUT; tx_desc->type = ISCSI_TX_DATAOUT;
tx_desc->cqe.done = iser_dataout_comp; tx_desc->cqe.done = iser_dataout_comp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment