From a8a0adb75996135b64316bad3f5c108414b06cde Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Fri, 26 Feb 2021 16:20:31 +0100 Subject: [PATCH] TT#111150 Remove tautological test in dtmf_inject() The tracker.most array is of unsigned char, so pt which gets unconditionally assigned will always be >= 0. Change-Id: I8adc06fc6c65aa0e33ef6614eb77c67b0dc07517 Warned-by: lgtm --- daemon/dtmf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/daemon/dtmf.c b/daemon/dtmf.c index d2f61fba8..98e52ed9f 100644 --- a/daemon/dtmf.c +++ b/daemon/dtmf.c @@ -315,8 +315,6 @@ const char *dtmf_inject(struct call_media *media, int code, int volume, int dura pt = ssrc_in->tracker.most[i]; if (pt == 255) continue; - if (pt < 0) - break; ch = codec_handler_get(media, pt); if (!ch)