mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
chan_unistim: Avoid tautological warnings with clang.
ASTERISK-28803 Change-Id: I15449621b68d0ad4d57b7c337c1167adb15135af
This commit is contained in:
@@ -1351,7 +1351,7 @@ static void refresh_all_favorite(struct unistimsession *pte)
|
|||||||
|
|
||||||
static int is_key_favorite(struct unistim_device *d, int fav)
|
static int is_key_favorite(struct unistim_device *d, int fav)
|
||||||
{
|
{
|
||||||
if ((fav < 0) && (fav > 5)) {
|
if ((fav < 0) || (fav >= FAVNUM)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (d->sline[fav]) {
|
if (d->sline[fav]) {
|
||||||
@@ -1365,7 +1365,7 @@ static int is_key_favorite(struct unistim_device *d, int fav)
|
|||||||
|
|
||||||
static int is_key_line(struct unistim_device *d, int fav)
|
static int is_key_line(struct unistim_device *d, int fav)
|
||||||
{
|
{
|
||||||
if ((fav < 0) && (fav > 5)) {
|
if ((fav < 0) || (fav >= FAVNUM)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (!d->sline[fav]) {
|
if (!d->sline[fav]) {
|
||||||
|
Reference in New Issue
Block a user