[FFmpeg-devel] [PATCH] Drop remaining unneeded != NULL
Clément Bœsch
u at pkh.me
Fri Aug 15 22:06:28 CEST 2014
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?
[...]
> /* remove connection from list */
> cp = &first_http_ctx;
> - while ((*cp) != NULL) {
> + while ((*cp)) {
you can drop the () here
[...]
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140815/c4810cde/attachment.asc>
More information about the ffmpeg-devel
mailing list