Fix Error: modem/alt1250/altcom_hdlr.c:902:24: error: result of comparison of constant 1 with expression of type 'bool' is always false [-Werror,-Wtautological-constant-compare]

api_edrx->enable > LTE_ENABLE)
      ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
Error: modem/alt1250/altcom_hdlr.c:901:24: error: result of comparison of constant 0 with expression of type 'bool' is always false [-Werror,-Wtautological-constant-compare]
  if (api_edrx->enable < LTE_DISABLE ||
      ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-10-29 02:38:22 +08:00 committed by Petro Karashchenko
parent e46bdeca1d
commit c2a4263cc5

View File

@ -898,13 +898,6 @@ int32_t altcombs_convert_api_edrx_value(lte_edrx_setting_t *api_edrx,
return -EINVAL; return -EINVAL;
} }
if (api_edrx->enable < LTE_DISABLE ||
api_edrx->enable > LTE_ENABLE)
{
m_err("Invalid enable :%d\n", api_edrx->enable);
return -EINVAL;
}
/* act_type check for version V4 or later */ /* act_type check for version V4 or later */
if (altver == ALTCOM_VER1) if (altver == ALTCOM_VER1)