Minor cleanup for own recent commits.
authorBastien Montagne <montagne29@wanadoo.fr>
Thu, 23 Nov 2017 21:43:11 +0000 (22:43 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Thu, 23 Nov 2017 21:43:11 +0000 (22:43 +0100)
source/blender/blenlib/intern/BLI_mempool.c

index c90f9e300b72f1ef982741913963ee52e4381a7e..5b13f129ad4f18eb955cf79c2548ea3978dce017 100644 (file)
@@ -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;