@@ -828,7 +828,7 @@ int iser_post_recvl(struct iser_conn *iser_conn)
828
828
struct ib_conn * ib_conn = & iser_conn -> ib_conn ;
829
829
struct iser_login_desc * desc = & iser_conn -> login_desc ;
830
830
struct ib_recv_wr wr ;
831
- int ib_ret ;
831
+ int ret ;
832
832
833
833
desc -> sge .addr = desc -> rsp_dma ;
834
834
desc -> sge .length = ISER_RX_LOGIN_SIZE ;
@@ -840,30 +840,30 @@ int iser_post_recvl(struct iser_conn *iser_conn)
840
840
wr .num_sge = 1 ;
841
841
wr .next = NULL ;
842
842
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 );
846
846
847
- return ib_ret ;
847
+ return ret ;
848
848
}
849
849
850
850
int iser_post_recvm (struct iser_conn * iser_conn , struct iser_rx_desc * rx_desc )
851
851
{
852
852
struct ib_conn * ib_conn = & iser_conn -> ib_conn ;
853
853
struct ib_recv_wr wr ;
854
- int ib_ret ;
854
+ int ret ;
855
855
856
856
rx_desc -> cqe .done = iser_task_rsp ;
857
857
wr .wr_cqe = & rx_desc -> cqe ;
858
858
wr .sg_list = & rx_desc -> rx_sg ;
859
859
wr .num_sge = 1 ;
860
860
wr .next = NULL ;
861
861
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 );
865
865
866
- return ib_ret ;
866
+ return ret ;
867
867
}
868
868
869
869
@@ -880,7 +880,7 @@ int iser_post_send(struct ib_conn *ib_conn, struct iser_tx_desc *tx_desc,
880
880
{
881
881
struct ib_send_wr * wr = & tx_desc -> send_wr ;
882
882
struct ib_send_wr * first_wr ;
883
- int ib_ret ;
883
+ int ret ;
884
884
885
885
ib_dma_sync_single_for_device (ib_conn -> device -> ib_device ,
886
886
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,
900
900
else
901
901
first_wr = wr ;
902
902
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 ))
905
905
iser_err ("ib_post_send failed, ret:%d opcode:%d\n" ,
906
- ib_ret , wr -> opcode );
906
+ ret , wr -> opcode );
907
907
908
- return ib_ret ;
908
+ return ret ;
909
909
}
910
910
911
911
u8 iser_check_task_pi_status (struct iscsi_iser_task * iser_task ,
0 commit comments