[CRIU] [PATCH] tty: fix typo

Tycho Andersen tycho.andersen at canonical.com
Mon Jun 27 08:45:14 PDT 2016


This is supposed to be an else if.

CC: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 criu/tty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/tty.c b/criu/tty.c
index 302dd54..9946c92 100644
--- a/criu/tty.c
+++ b/criu/tty.c
@@ -1510,7 +1510,7 @@ static int collect_one_tty(void *obj, ProtobufCMessage *msg, struct cr_img *i)
 				       info->tfe->id);
 				return -1;
 			}
-		} if (info->driver->type != TTY_TYPE__EXT_TTY) {
+		} else if (info->driver->type != TTY_TYPE__EXT_TTY) {
 			pr_err("No reg_d descriptor for id %#x\n", info->tfe->id);
 			return -1;
 		}
-- 
2.7.4



More information about the CRIU mailing list