Skip to content

Commit cf9962c

Browse files
mgurtovoyjgunthorpe
authored andcommitted
IB/iser: Rename ib_ret local variable
Use more common name for return values ("ret"). This commit doesn't change any logic. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Max Gurtovoy <[email protected]> Reviewed-by: Israel Rukshin <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 39b169e commit cf9962c

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

drivers/infiniband/ulp/iser/iser_verbs.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ int iser_post_recvl(struct iser_conn *iser_conn)
828828
struct ib_conn *ib_conn = &iser_conn->ib_conn;
829829
struct iser_login_desc *desc = &iser_conn->login_desc;
830830
struct ib_recv_wr wr;
831-
int ib_ret;
831+
int ret;
832832

833833
desc->sge.addr = desc->rsp_dma;
834834
desc->sge.length = ISER_RX_LOGIN_SIZE;
@@ -840,30 +840,30 @@ int iser_post_recvl(struct iser_conn *iser_conn)
840840
wr.num_sge = 1;
841841
wr.next = NULL;
842842

843-
ib_ret = ib_post_recv(ib_conn->qp, &wr, NULL);
844-
if (unlikely(ib_ret))
845-
iser_err("ib_post_recv login failed ret=%d\n", ib_ret);
843+
ret = ib_post_recv(ib_conn->qp, &wr, NULL);
844+
if (unlikely(ret))
845+
iser_err("ib_post_recv login failed ret=%d\n", ret);
846846

847-
return ib_ret;
847+
return ret;
848848
}
849849

850850
int iser_post_recvm(struct iser_conn *iser_conn, struct iser_rx_desc *rx_desc)
851851
{
852852
struct ib_conn *ib_conn = &iser_conn->ib_conn;
853853
struct ib_recv_wr wr;
854-
int ib_ret;
854+
int ret;
855855

856856
rx_desc->cqe.done = iser_task_rsp;
857857
wr.wr_cqe = &rx_desc->cqe;
858858
wr.sg_list = &rx_desc->rx_sg;
859859
wr.num_sge = 1;
860860
wr.next = NULL;
861861

862-
ib_ret = ib_post_recv(ib_conn->qp, &wr, NULL);
863-
if (unlikely(ib_ret))
864-
iser_err("ib_post_recv failed ret=%d\n", ib_ret);
862+
ret = ib_post_recv(ib_conn->qp, &wr, NULL);
863+
if (unlikely(ret))
864+
iser_err("ib_post_recv failed ret=%d\n", ret);
865865

866-
return ib_ret;
866+
return ret;
867867
}
868868

869869

@@ -880,7 +880,7 @@ int iser_post_send(struct ib_conn *ib_conn, struct iser_tx_desc *tx_desc,
880880
{
881881
struct ib_send_wr *wr = &tx_desc->send_wr;
882882
struct ib_send_wr *first_wr;
883-
int ib_ret;
883+
int ret;
884884

885885
ib_dma_sync_single_for_device(ib_conn->device->ib_device,
886886
tx_desc->dma_addr, ISER_HEADERS_LEN,
@@ -900,12 +900,12 @@ int iser_post_send(struct ib_conn *ib_conn, struct iser_tx_desc *tx_desc,
900900
else
901901
first_wr = wr;
902902

903-
ib_ret = ib_post_send(ib_conn->qp, first_wr, NULL);
904-
if (unlikely(ib_ret))
903+
ret = ib_post_send(ib_conn->qp, first_wr, NULL);
904+
if (unlikely(ret))
905905
iser_err("ib_post_send failed, ret:%d opcode:%d\n",
906-
ib_ret, wr->opcode);
906+
ret, wr->opcode);
907907

908-
return ib_ret;
908+
return ret;
909909
}
910910

911911
u8 iser_check_task_pi_status(struct iscsi_iser_task *iser_task,

0 commit comments

Comments
 (0)