mirror of
https://github.com/kdave/btrfs-progs
synced 2025-03-25 04:16:32 +00:00
btrfs-progs: dump-tree: return void from print_* functions
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
e9c1121495
commit
5082ec84a8
@ -62,7 +62,7 @@ static void print_dir_item_type(struct extent_buffer *eb,
|
||||
}
|
||||
}
|
||||
|
||||
static int print_dir_item(struct extent_buffer *eb, u32 size,
|
||||
static void print_dir_item(struct extent_buffer *eb, u32 size,
|
||||
struct btrfs_dir_item *di)
|
||||
{
|
||||
u32 cur = 0;
|
||||
@ -97,10 +97,9 @@ static int print_dir_item(struct extent_buffer *eb, u32 size,
|
||||
di = (struct btrfs_dir_item *)((char *)di + len);
|
||||
cur += len;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int print_inode_extref_item(struct extent_buffer *eb, u32 size,
|
||||
static void print_inode_extref_item(struct extent_buffer *eb, u32 size,
|
||||
struct btrfs_inode_extref *extref)
|
||||
{
|
||||
u32 cur = 0;
|
||||
@ -129,10 +128,9 @@ static int print_inode_extref_item(struct extent_buffer *eb, u32 size,
|
||||
extref = (struct btrfs_inode_extref *)((char *)extref + len);
|
||||
cur += len;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int print_inode_ref_item(struct extent_buffer *eb, u32 size,
|
||||
static void print_inode_ref_item(struct extent_buffer *eb, u32 size,
|
||||
struct btrfs_inode_ref *ref)
|
||||
{
|
||||
u32 cur = 0;
|
||||
@ -152,7 +150,6 @@ static int print_inode_ref_item(struct extent_buffer *eb, u32 size,
|
||||
ref = (struct btrfs_inode_ref *)((char *)ref + len);
|
||||
cur += len;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Caller should ensure sizeof(*ret)>=21 "DATA|METADATA|RAID10" */
|
||||
|
Loading…
Reference in New Issue
Block a user