[Asterisk-code-review] chan_unistim: Avoid tautological warnings with clang. (asterisk[master])

Alexander Traud asteriskteam at digium.com
Fri Apr 3 12:25:27 CDT 2020


Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/14084 )


Change subject: chan_unistim: Avoid tautological warnings with clang.
......................................................................

chan_unistim: Avoid tautological warnings with clang.

ASTERISK-28803

Change-Id: I15449621b68d0ad4d57b7c337c1167adb15135af
---
M channels/chan_unistim.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/84/14084/1

diff --git a/channels/chan_unistim.c b/channels/chan_unistim.c
index 0ed190b..45dd829 100644
--- a/channels/chan_unistim.c
+++ b/channels/chan_unistim.c
@@ -1351,7 +1351,7 @@
 
 static int is_key_favorite(struct unistim_device *d, int fav)
 {
-	if ((fav < 0) && (fav > 5)) {
+	if ((fav < 0) || (fav => FAVNUM)) {
 		return 0;
 	}
 	if (d->sline[fav]) {
@@ -1365,7 +1365,7 @@
 
 static int is_key_line(struct unistim_device *d, int fav)
 {
-	if ((fav < 0) && (fav > 5)) {
+	if ((fav < 0) || (fav => FAVNUM)) {
 		return 0;
 	}
 	if (!d->sline[fav]) {

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14084
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I15449621b68d0ad4d57b7c337c1167adb15135af
Gerrit-Change-Number: 14084
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200403/e60792c1/attachment.html>


More information about the asterisk-code-review mailing list