Skip to content

Commit cedf99d

Browse files
committed
Cosmetic remark from @ggouaillardet.
1 parent aecba4f commit cedf99d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

opal/mca/btl/tcp/btl_tcp_frag.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ size_t mca_btl_tcp_frag_dump(mca_btl_tcp_frag_t* frag, char* msg, char* buf, siz
109109

110110
bool mca_btl_tcp_frag_send(mca_btl_tcp_frag_t* frag, int sd)
111111
{
112-
ssize_t cnt = -1;
112+
ssize_t cnt;
113113
size_t i, num_vecs;
114114

115115
/* non-blocking write, but continue if interrupted */
@@ -202,7 +202,6 @@ bool mca_btl_tcp_frag_recv(mca_btl_tcp_frag_t* frag, int sd)
202202
#endif /* MCA_BTL_TCP_ENDPOINT_CACHE */
203203

204204
/* non-blocking read, but continue if interrupted */
205-
cnt = -1;
206205
do {
207206
cnt = readv(sd, frag->iov_ptr, num_vecs);
208207
if( 0 < cnt ) goto advance_iov_position;

0 commit comments

Comments
 (0)