[FFmpeg-devel] [PATCH 2/3] avutil/get_pool: remove dead operations whichs result is never used.
Michael Niedermayer
michaelni at gmx.at
Sun Mar 17 21:06:42 CET 2013
On Sun, Mar 17, 2013 at 06:57:13PM +0100, Hendrik Leppkes wrote:
> On Sun, Mar 17, 2013 at 6:46 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > ---
> > libavutil/buffer.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/libavutil/buffer.c b/libavutil/buffer.c
> > index 3475e57..5c753ab 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;
> > --
> > 1.7.9.5
> >
>
>
> LGTM
applied
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130317/a325f3b1/attachment.asc>
More information about the ffmpeg-devel
mailing list