Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2017-11-24 00:43:11 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2017-11-24 00:43:11 +0300
commitb63442e0b61691a0aa65ce1cef806beba67e85ee (patch)
treee3995fa6e5ddf0fc2293599429890693c997c534 /source/blender/blenlib/intern/BLI_mempool.c
parent43ddf0e9a7f0f9986ed24e05df0ce7eac5f944b6 (diff)
Minor cleanup for own recent commits.
Diffstat (limited to 'source/blender/blenlib/intern/BLI_mempool.c')
-rw-r--r--source/blender/blenlib/intern/BLI_mempool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/BLI_mempool.c b/source/blender/blenlib/intern/BLI_mempool.c
index c90f9e300b7..5b13f129ad4 100644
--- a/source/blender/blenlib/intern/BLI_mempool.c
+++ b/source/blender/blenlib/intern/BLI_mempool.c
@@ -628,7 +628,7 @@ static void *bli_mempool_iternext(BLI_mempool_iter *iter)
while (1) {
iter->curchunk = *iter->curchunk_threaded_shared;
if (iter->curchunk == NULL) {
- break;
+ return ret;
}
if (atomic_cas_ptr((void **)iter->curchunk_threaded_shared, iter->curchunk, iter->curchunk->next) == iter->curchunk) {
break;