2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

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: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Kir Kolyshkin
2014-01-08 19:33:02 -08:00
committed by Pavel Emelyanov
parent fe0a9670f3
commit 8c0feee253

View File

@@ -306,10 +306,8 @@ 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)) {