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>
master
Zhao Lei 2015-10-12 21:22:57 +08:00 committed by David Sterba
parent 45401669b0
commit 97a9818716
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}