From fb143cdcb903131186049ca5d557ec5b70a63964 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Fri, 7 Feb 2014 06:55:53 +0000 Subject: [PATCH] Remove unused variable serial from tcfinal(). --- src/sulogin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sulogin.c b/src/sulogin.c index 68c2aa9..57bea92 100644 --- a/src/sulogin.c +++ b/src/sulogin.c @@ -228,12 +228,11 @@ setattr: static void tcfinal(struct console *con) { - int serial; struct termios *tio = &con->tio; int fd = con->fd; /* Expected error */ - serial = errno = 0; + errno = 0; if ((con->flags & CON_SERIAL) == 0) { #ifdef __linux__