The function only returns true and false, and the places using the function also expect a bool return type. Therefore, the function's return type is changed from int to bool. Signed-off-by: Xichao Zhao <zhao.xichao@xxxxxxxx> --- block/partitions/ldm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/partitions/ldm.c b/block/partitions/ldm.c index 2bd42fedb907..bfcdee4c29db 100644 --- a/block/partitions/ldm.c +++ b/block/partitions/ldm.c @@ -765,7 +765,7 @@ static bool ldm_parse_cmp3 (const u8 *buffer, int buflen, struct vblk *vb) * Return: 'true' @vb contains a Disk Group VBLK * 'false' @vb contents are not defined */ -static int ldm_parse_dgr3 (const u8 *buffer, int buflen, struct vblk *vb) +static bool ldm_parse_dgr3 (const u8 *buffer, int buflen, struct vblk *vb) { int r_objid, r_name, r_diskid, r_id1, r_id2, len; struct vblk_dgrp *dgrp; -- 2.34.1