diff mbox series

[FFmpeg-devel,3/4] avfilter/af_aiir: Remove dead code

Message ID GV1P250MB073742A5E9E3664777B0E4738FF52@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 37cc648fbd9e6d3dc61e8ac487774d330131c70f
Headers show
Series [FFmpeg-devel,1/4] avfilter/vf_signalstats: Use 64bit for processing histogram | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt May 24, 2024, 8:05 a.m. UTC
Fixes Coverity issue #1468252.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavfilter/af_aiir.c | 4 ----
 1 file changed, 4 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/af_aiir.c b/libavfilter/af_aiir.c
index b5e5b41db6..324fc367a3 100644
--- a/libavfilter/af_aiir.c
+++ b/libavfilter/af_aiir.c
@@ -820,7 +820,6 @@  static void solve(double *matrix, double *vector, int n, double *y, double *x, d
 static int convert_serial2parallel(AVFilterContext *ctx, int channels)
 {
     AudioIIRContext *s = ctx->priv;
-    int ret = 0;
 
     for (int ch = 0; ch < channels; ch++) {
         IIRChannel *iir = &s->iir[ch];
@@ -879,9 +878,6 @@  static int convert_serial2parallel(AVFilterContext *ctx, int channels)
         av_free(resp);
         av_free(M);
         av_free(W);
-
-        if (ret < 0)
-            return ret;
     }
 
     return 0;