Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d406dfff authored by Mike J. Chen's avatar Mike J. Chen
Browse files

Fix warning "comparison is always true due to limited range of data type"



Change-Id: I4b195607d0cd8ee135b26065eed0eef5407061b6
Signed-off-by: default avatarMike J. Chen <mjchen@google.com>
parent bb105972
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -114,8 +114,7 @@ BOOLEAN avrc_is_valid_player_attrib_value(UINT8 attrib, UINT8 value)
         break;
    }

    if (attrib >= AVRC_PLAYER_SETTING_LOW_MENU_EXT &&
       attrib <= AVRC_PLAYER_SETTING_HIGH_MENU_EXT)
    if (attrib >= AVRC_PLAYER_SETTING_LOW_MENU_EXT)
       result = TRUE;

    if (!result)
@@ -140,7 +139,7 @@ BOOLEAN AVRC_IsValidPlayerAttr(UINT8 attr)
    BOOLEAN result=FALSE;

    if ( (attr >= AVRC_PLAYER_SETTING_EQUALIZER && attr <= AVRC_PLAYER_SETTING_SCAN) ||
         (attr >= AVRC_PLAYER_SETTING_LOW_MENU_EXT && attr <= AVRC_PLAYER_SETTING_HIGH_MENU_EXT) )
         (attr >= AVRC_PLAYER_SETTING_LOW_MENU_EXT) )
    {
       result = TRUE;
    }