]> git.tue.mpg.de Git - paraslash.git/commitdiff
wma_afh.c: Remove condition which is always true.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 8 Jan 2017 17:05:31 +0000 (18:05 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 25 Mar 2017 10:58:52 +0000 (11:58 +0100)
The single caller of count_frames() never passes a NULL pointer.

wma_afh.c

index af9ead7c451e941380ebf35144d133c6d520d3ea..0d543195151922a27e4f5d7a72749e26f0ad34cc 100644 (file)
--- a/wma_afh.c
+++ b/wma_afh.c
@@ -38,8 +38,7 @@ static int count_frames(const char *buf, int buf_size, uint32_t packet_size,
                sfc++;
        }
        PARA_INFO_LOG("%d frames, %d superframes\n", fc, sfc);
-       if (num_superframes)
-               *num_superframes = sfc;
+       *num_superframes = sfc;
        return fc;
 }