Commit 8c0feee2 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

main(): don't dupe open_image_dir() error message

In case open_image_dir() fails, it prints an error why,
so there is no need to print it one more time.
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent fe0a9670
......@@ -306,11 +306,9 @@ int main(int argc, char *argv[])
/* We must not open imgs dir, if service is called */
if (strcmp(argv[optind], "service")) {
ret = open_image_dir(imgs_dir);
if (ret < 0) {
pr_perror("Can't open imgs directory");
if (ret < 0)
return 1;
}
}
if (chdir(work_dir)) {
pr_perror("Can't change directory to %s", work_dir);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment