Re: [PATCH 1/3] btrfs: image: remove the dead stat() call

2021-03-26 Thread Su Yue
On Fri 26 Mar 2021 at 20:50, Qu Wenruo wrote: In restore_metadump(), we call stat() but never uses the result get. This call site is left by some code refactor, as the stat() call is now moved into fixup_device_size(). fixup_device_size() already calls fstat() on out_fd. Reviewed-by: S

[PATCH 1/3] btrfs: image: remove the dead stat() call

2021-03-26 Thread Qu Wenruo
In restore_metadump(), we call stat() but never uses the result get. This call site is left by some code refactor, as the stat() call is now moved into fixup_device_size(). So we can safely remove the call. Signed-off-by: Qu Wenruo --- image/main.c | 8 1 file changed, 8 deletions(-)