avutil/get_pool: remove dead operations whichs result is never used.
[ffmpeg.git] / libavutil / buffer.c
index 3475e57..5c753ab 100644 (file)
@@ -242,7 +242,7 @@ static BufferPoolEntry *get_pool(AVBufferPool *pool)
     BufferPoolEntry *cur = *(void * volatile *)&pool->pool, *last = NULL;
 
     while (cur != last) {
-        FFSWAP(BufferPoolEntry*, cur, last);
+        last = cur;
         cur = avpriv_atomic_ptr_cas((void * volatile *)&pool->pool, last, NULL);
         if (!cur)
             return NULL;