[FFmpeg-devel] [PATCH] Drop remaining unneeded != NULL

Michael Niedermayer michaelni at gmx.at
Fri Aug 15 22:33:16 CEST 2014


On Fri, Aug 15, 2014 at 10:06:28PM +0200, Clément Bœsch wrote:
> On Fri, Aug 15, 2014 at 09:47:12PM +0200, Michael Niedermayer wrote:
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > ---
> >  cmdutils.c                         |    2 +-
> >  ffmpeg.c                           |    2 +-
> >  ffplay.c                           |    2 +-
> >  ffserver.c                         |   42 ++++++++++++++++++------------------
> >  libavcodec/libx264.c               |    2 +-
> >  libavcodec/mpegaudiodec_template.c |    2 +-
> >  libavcodec/parser.c                |    2 +-
> >  libavfilter/af_amix.c              |    4 ++--
> >  libavfilter/libmpcodecs/vf_eq2.c   |    6 +++---
> >  libavformat/lrcenc.c               |    6 +++---
> >  libavformat/matroskadec.c          |    2 +-
> >  libavformat/mov.c                  |    2 +-
> >  libavformat/rtpdec_h264.c          |    2 +-
> >  libavformat/sctp.c                 |    2 +-
> >  libavformat/webmdashenc.c          |    2 +-
> >  libpostproc/postprocess.c          |   12 +++++------
> >  16 files changed, 46 insertions(+), 46 deletions(-)
> > 
> 
> sure whatever...
> 
> did you use coccinelle?

nope, just sed and bash


> 
> [...]
> >      /* remove connection from list */
> >      cp = &first_http_ctx;
> > -    while ((*cp) != NULL) {
> > +    while ((*cp)) {
> 
> you can drop the () here

ok, will do and push in a moment

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140815/791f6826/attachment.asc>


More information about the ffmpeg-devel mailing list