ASoC: topology: Return bool instead of int
In practice soc_tplg_is_eof() returns boolean value and caller uses the return value in such way, so convert the function to really do it. Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://lore.kernel.org/r/20220401120200.4047867-4-amadeuszx.slawinski@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Родитель
0db627c4f5
Коммит
4fad3cc6eb
|
@ -104,13 +104,13 @@ static int soc_tplg_check_elem_count(struct soc_tplg *tplg, size_t elem_size,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int soc_tplg_is_eof(struct soc_tplg *tplg)
|
static inline bool soc_tplg_is_eof(struct soc_tplg *tplg)
|
||||||
{
|
{
|
||||||
const u8 *end = tplg->hdr_pos;
|
const u8 *end = tplg->hdr_pos;
|
||||||
|
|
||||||
if (end >= tplg->fw->data + tplg->fw->size)
|
if (end >= tplg->fw->data + tplg->fw->size)
|
||||||
return 1;
|
return true;
|
||||||
return 0;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline unsigned long soc_tplg_get_hdr_offset(struct soc_tplg *tplg)
|
static inline unsigned long soc_tplg_get_hdr_offset(struct soc_tplg *tplg)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче