Skip to content

Commit 9bb1d00

Browse files
committed
rcache/grdma: fix typo
This typo was originally fixed on the mpool_rewrite branch but the change was lost. Signed-off-by: Nathan Hjelm <[email protected]>
1 parent 8f38103 commit 9bb1d00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

opal/mca/rcache/grdma/rcache_grdma_component.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static mca_rcache_base_module_t *
102102
grdma_init(struct mca_rcache_base_resources_t *resources)
103103
{
104104
mca_rcache_grdma_module_t *rcache_module;
105-
mca_rcache_grdma_cache_t *cache = NULL, *item, *next;
105+
mca_rcache_grdma_cache_t *cache = NULL, *item;
106106

107107
/* Set this here (vs in component.c) because
108108
opal_leave_pinned* may have been set after MCA params were
@@ -111,8 +111,8 @@ grdma_init(struct mca_rcache_base_resources_t *resources)
111111
(1 == opal_leave_pinned || opal_leave_pinned_pipeline);
112112

113113
/* find the specified pool */
114-
OPAL_LIST_FOREACH_SAFE(item, next, &mca_rcache_grdma_component.caches, mca_rcache_grdma_cache_t) {
115-
if (0 == strcmp (cache->cache_name, resources->cache_name)) {
114+
OPAL_LIST_FOREACH(item, &mca_rcache_grdma_component.caches, mca_rcache_grdma_cache_t) {
115+
if (0 == strcmp (item->cache_name, resources->cache_name)) {
116116
cache = item;
117117
break;
118118
}

0 commit comments

Comments
 (0)