From 7df8a627b939337d5603fd0a37c4b0cd7b1910c3 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 8 Jan 2017 18:05:31 +0100 Subject: [PATCH] wma_afh.c: Remove condition which is always true. The single caller of count_frames() never passes a NULL pointer. --- wma_afh.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wma_afh.c b/wma_afh.c index af9ead7c..0d543195 100644 --- 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; } -- 2.39.5