diff mbox

[FFmpeg-devel,1/2] avcodec/dcaadpcm: remove unreachable code

Message ID 20170724122447.3307-1-foobaz86@gmail.com
State New
Headers show

Commit Message

foo86 July 24, 2017, 12:24 p.m. UTC
Arguments passed to these functions are never NULL.
---
 libavcodec/dcaadpcm.c | 6 ------
 1 file changed, 6 deletions(-)
diff mbox

Patch

diff --git a/libavcodec/dcaadpcm.c b/libavcodec/dcaadpcm.c
index 9f615e3793..d9f53441b0 100644
--- a/libavcodec/dcaadpcm.c
+++ b/libavcodec/dcaadpcm.c
@@ -211,9 +211,6 @@  int ff_dcaadpcm_do_real(int pred_vq_index,
 
 av_cold int ff_dcaadpcm_init(DCAADPCMEncContext *s)
 {
-    if (!s)
-        return -1;
-
     s->private_data = av_malloc(sizeof(premultiplied_coeffs) * DCA_ADPCM_VQCODEBOOK_SZ);
     if (!s->private_data)
         return AVERROR(ENOMEM);
@@ -224,8 +221,5 @@  av_cold int ff_dcaadpcm_init(DCAADPCMEncContext *s)
 
 av_cold void ff_dcaadpcm_free(DCAADPCMEncContext *s)
 {
-    if (!s)
-        return;
-
     av_freep(&s->private_data);
 }