From a57005abbc57c107a0c51f7442d78408c0b2f191 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 2 Jun 2014 08:22:15 +0200 Subject: [PATCH] mpegts: Remove unneeded NULL check Allocating those structures is done in all code paths leading there CID #1219860 CID #1219861 CID #1219862 CID #1219863 CID #1219864 --- gst-libs/gst/mpegts/gst-atsc-section.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/gst-libs/gst/mpegts/gst-atsc-section.c b/gst-libs/gst/mpegts/gst-atsc-section.c index 87bc4bf..8756547 100644 --- a/gst-libs/gst/mpegts/gst-atsc-section.c +++ b/gst-libs/gst/mpegts/gst-atsc-section.c @@ -197,8 +197,7 @@ _parse_atsc_vct (GstMpegTsSection * section) return (gpointer) vct; error: - if (vct) - _gst_mpegts_atsc_vct_free (vct); + _gst_mpegts_atsc_vct_free (vct); return NULL; } @@ -366,8 +365,7 @@ _parse_atsc_mgt (GstMpegTsSection * section) return (gpointer) mgt; error: - if (mgt) - _gst_mpegts_atsc_mgt_free (mgt); + _gst_mpegts_atsc_mgt_free (mgt); return NULL; } @@ -710,8 +708,7 @@ _parse_atsc_eit (GstMpegTsSection * section) return (gpointer) eit; error: - if (eit) - _gst_mpegts_atsc_eit_free (eit); + _gst_mpegts_atsc_eit_free (eit); return NULL; @@ -798,8 +795,7 @@ _parse_ett (GstMpegTsSection * section) return (gpointer) ett; error: - if (ett) - _gst_mpegts_atsc_ett_free (ett); + _gst_mpegts_atsc_ett_free (ett); return NULL; @@ -888,8 +884,7 @@ _parse_atsc_stt (GstMpegTsSection * section) return (gpointer) stt; error: - if (stt) - _gst_mpegts_atsc_stt_free (stt); + _gst_mpegts_atsc_stt_free (stt); return NULL; } -- 2.7.4