From bab99bab677988723afe14a7d680e6d5cc7ddda4 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 8 Sep 2018 13:14:37 +0200 Subject: [PATCH] check_wav: Remove pointless cast. cwc->channels is already unsigned. --- check_wav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_wav.c b/check_wav.c index 025dcb85..89ebdacc 100644 --- a/check_wav.c +++ b/check_wav.c @@ -156,7 +156,7 @@ int check_wav_post_select(struct check_wav_context *cwc) PARA_INFO_LOG("found wav header\n"); cwc->state = CWS_HAVE_HEADER; /* Only set those values which have not already been set. */ - cwc->channels = (unsigned)a[22]; + cwc->channels = a[22]; cwc->sample_rate = read_u32(a + 24); bps = read_u16(a + 34); if (bps != 8 && bps != 16) { -- 2.39.5