ASoC: topology: Return bool instead of int
[sfrench/cifs-2.6.git] / sound / soc / soc-topology.c
index f5446aac8ac676f7dbab64416465594cf2340fa4..f8e482d616fbd0d4d61508954a1206b8c17c7eca 100644 (file)
@@ -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)