Message ID | 24a594eddf990a332aeb4d1c5210f1aa9634c587.1444655800.git.zhaolei@cn.fujitsu.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff --git a/cmds-inspect.c b/cmds-inspect.c index fc3db99..879fd43 100644 --- a/cmds-inspect.c +++ b/cmds-inspect.c @@ -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; }
No need to cleanup fd in open_fail case, because it is not opened. Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> --- cmds-inspect.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)