From: Amadeusz Sławiński Date: Fri, 1 Apr 2022 12:01:57 +0000 (+0200) Subject: ASoC: topology: Return bool instead of int X-Git-Tag: v6.1-rc5~574^2~68^2~168^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4fad3cc6eb962a6fe32ab9fb9d30b08a88298f63;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Ranjani Sridharan Reviewed-by: Cezary Rojewski Link: https://lore.kernel.org/r/20220401120200.4047867-4-amadeuszx.slawinski@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index f5446aa..f8e482d 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -104,13 +104,13 @@ static int soc_tplg_check_elem_count(struct soc_tplg *tplg, size_t elem_size, 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; if (end >= tplg->fw->data + tplg->fw->size) - return 1; - return 0; + return true; + return false; } static inline unsigned long soc_tplg_get_hdr_offset(struct soc_tplg *tplg)