[CRIU] [PATCH 1/4] main(): don't dupe open_image_dir() error message
    Kir Kolyshkin 
    kir at openvz.org
       
    Wed Jan  8 19:33:02 PST 2014
    
    
  
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 at openvz.org>
---
 crtools.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/crtools.c b/crtools.c
index ade755c..e65d470 100644
--- a/crtools.c
+++ b/crtools.c
@@ -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)) {
-- 
1.8.1.4
    
    
More information about the CRIU
mailing list