mirror of
https://github.com/kdave/btrfs-progs
synced 2025-03-20 09:56:29 +00:00
btrfs-progs: inspect: Bypass unnecessary clean function in open_error
No need to cleanup fd in open_fail case, because it is not opened. Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
45401669b0
commit
97a9818716
@ -626,9 +626,8 @@ static int cmd_inspect_min_dev_size(int argc, char **argv)
|
||||
}
|
||||
|
||||
ret = print_min_dev_size(fd, devid);
|
||||
out:
|
||||
close_file_or_dir(fd, dirstream);
|
||||
|
||||
out:
|
||||
return !!ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user