Skip to content

Commit 37a6ffb

Browse files
committed
coll/han: remove unused variables
Minor code cleanup Signed-off-by: Wenduo Wang <[email protected]>
1 parent 80884d4 commit 37a6ffb

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

ompi/mca/coll/han/coll_han_gatherv.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ int mca_coll_han_gatherv_intra(const void *sbuf, size_t scount, struct ompi_data
129129
int need_bounce_buf = 0;
130130
size_t total_up_rcounts = 0;
131131
ptrdiff_t *up_displs = NULL;
132-
size_t *up_rcounts = NULL, *up_peer_lb = NULL, *up_peer_ub = NULL;
132+
size_t *up_rcounts = NULL, *up_peer_ub = NULL;
133133
ompi_count_array_t up_rcounts_desc;
134134
ompi_disp_array_t up_displs_desc;
135135
char *bounce_buf = NULL;
@@ -273,9 +273,6 @@ int mca_coll_han_gatherv_intra(const void *sbuf, size_t scount, struct ompi_data
273273
if (up_rcounts) {
274274
free(up_rcounts);
275275
}
276-
if (up_peer_lb) {
277-
free(up_peer_lb);
278-
}
279276
if (up_peer_ub) {
280277
free(up_peer_ub);
281278
}

ompi/mca/coll/han/coll_han_scatterv.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ int mca_coll_han_scatterv_intra(const void *sbuf, ompi_count_array_t scounts, om
143143
int need_bounce_buf = 0;
144144
size_t total_up_scounts = 0;
145145
ptrdiff_t *up_displs = NULL;
146-
size_t *up_scounts = NULL, *up_peer_lb = NULL, *up_peer_ub = NULL;
146+
size_t *up_scounts = NULL, *up_peer_ub = NULL;
147147
ompi_count_array_t up_scounts_desc;
148148
ompi_disp_array_t up_displs_desc;
149149
char *reorder_sbuf = (char *) sbuf, *bounce_buf = NULL;
@@ -290,9 +290,6 @@ int mca_coll_han_scatterv_intra(const void *sbuf, ompi_count_array_t scounts, om
290290
if (up_scounts) {
291291
free(up_scounts);
292292
}
293-
if (up_peer_lb) {
294-
free(up_peer_lb);
295-
}
296293
if (up_peer_ub) {
297294
free(up_peer_ub);
298295
}

0 commit comments

Comments
 (0)