mirror of https://git.ffmpeg.org/ffmpeg.git
avutil/get_pool: remove dead operations whichs result is never used.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e3be7b1159
commit
c603f22683
|
@ -242,7 +242,7 @@ static BufferPoolEntry *get_pool(AVBufferPool *pool)
|
||||||
BufferPoolEntry *cur = *(void * volatile *)&pool->pool, *last = NULL;
|
BufferPoolEntry *cur = *(void * volatile *)&pool->pool, *last = NULL;
|
||||||
|
|
||||||
while (cur != last) {
|
while (cur != last) {
|
||||||
FFSWAP(BufferPoolEntry*, cur, last);
|
last = cur;
|
||||||
cur = avpriv_atomic_ptr_cas((void * volatile *)&pool->pool, last, NULL);
|
cur = avpriv_atomic_ptr_cas((void * volatile *)&pool->pool, last, NULL);
|
||||||
if (!cur)
|
if (!cur)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue