Skip to content

Commit 5adc99e

Browse files
Xichao Zhaokawasaki
authored andcommitted
block/partitions/ldm: Use bool as the function return type
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 <[email protected]>
1 parent 991e6ef commit 5adc99e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/partitions/ldm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ static bool ldm_parse_cmp3 (const u8 *buffer, int buflen, struct vblk *vb)
765765
* Return: 'true' @vb contains a Disk Group VBLK
766766
* 'false' @vb contents are not defined
767767
*/
768-
static int ldm_parse_dgr3 (const u8 *buffer, int buflen, struct vblk *vb)
768+
static bool ldm_parse_dgr3 (const u8 *buffer, int buflen, struct vblk *vb)
769769
{
770770
int r_objid, r_name, r_diskid, r_id1, r_id2, len;
771771
struct vblk_dgrp *dgrp;

0 commit comments

Comments
 (0)