From c603f22683d85ce45909582fe12cdb4753f9f616 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 17 Mar 2013 16:51:40 +0100 Subject: avutil/get_pool: remove dead operations whichs result is never used. Signed-off-by: Michael Niedermayer --- libavutil/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavutil') diff --git a/libavutil/buffer.c b/libavutil/buffer.c index 3475e57b4a..5c753abce5 100644 --- a/libavutil/buffer.c +++ b/libavutil/buffer.c @@ -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; -- cgit v1.2.3