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,10 +306,8 @@ int main(int argc, char *argv[]) ...@@ -306,10 +306,8 @@ int main(int argc, char *argv[])
/* We must not open imgs dir, if service is called */ /* We must not open imgs dir, if service is called */
if (strcmp(argv[optind], "service")) { if (strcmp(argv[optind], "service")) {
ret = open_image_dir(imgs_dir); ret = open_image_dir(imgs_dir);
if (ret < 0) { if (ret < 0)
pr_perror("Can't open imgs directory");
return 1; return 1;
}
} }
if (chdir(work_dir)) { if (chdir(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