[CRIU] [PATCH] Bugfix: Kill dead code from pipes test #333

mitulkarnik.92 at gmail.com mitulkarnik.92 at gmail.com
Tue Feb 26 13:03:02 MSK 2019


From: Mitul Karnik <mitulkarnik.92 at gmail.com>

Signed-off-by: Mitul Karnik <mitulkarnik.92 at gmail.com>
---
 test/zdtm/static/pipe01.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm/static/pipe01.c b/test/zdtm/static/pipe01.c
index 85478b6e..ec8d1fb6 100644
--- a/test/zdtm/static/pipe01.c
+++ b/test/zdtm/static/pipe01.c
@@ -108,8 +108,8 @@ int main(int argc, char ** argv)
 		if (ret == 0)
 			break;
 		if (ret == -1) {
-			goto err;
 			pr_perror("read() failed");
+			goto err;
 		}
 		size -= ret;
 
-- 
2.17.1



More information about the CRIU mailing list