From 30e16b04db8733e17fcf887508f2c33088eef2b6 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 20 Sep 2018 22:25:12 +0200 Subject: [PATCH] afh: Minor simplification for afh_get_chunk(). The function already defines a shortcut for the pointer to the audio format handler, so use it. --- afh_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afh_common.c b/afh_common.c index dcb0b856..cb773bd6 100644 --- a/afh_common.c +++ b/afh_common.c @@ -313,7 +313,7 @@ __must_check int afh_get_chunk(long unsigned chunk_num, struct afh_info *afhi, if (ret < 0) return ret; } - ret = afl[audio_format_id].get_chunk(chunk_num, *afh_context, + ret = afh->get_chunk(chunk_num, *afh_context, buf, len); if (ret < 0) { afh->close(*afh_context); -- 2.39.5