summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2011-05-26 20:18:06 +0000
committerTiago Cunha <tcunha@gmx.com>2011-05-26 20:18:06 +0000
commit159faa4ed728325cb203ceb9a765425b0256258c (patch)
tree6fd133443a3d9ceafa4d344e14d2a71590a866e0
parentf9cb06cf2c6c3d643f4a0f6f0512b91c77a2f0d7 (diff)
Sync OpenBSD patchset 921:
Trim another useless if statement, from Ailin Nemui.
-rw-r--r--tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index b4e4efcc..a3cb6a31 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.212 2011-05-22 16:26:09 tcunha Exp $ */
+/* $Id$ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -248,7 +248,7 @@ tty_stop_tty(struct tty *tty)
if (tty_term_has(tty->term, TTYC_CS1) && tty->cstyle != 0) {
if (tty_term_has(tty->term, TTYC_CSR1))
tty_raw(tty, tty_term_string(tty->term, TTYC_CSR1));
- else if (tty_term_has(tty->term, TTYC_CS1))
+ else
tty_raw(tty, tty_term_string1(tty->term, TTYC_CS1, 0));
}
tty_raw(tty, tty_term_string(tty->term, TTYC_CR));