From: anton Date: Tue, 28 Jun 2022 16:28:08 +0000 (+0000) Subject: Remove commented out variables and excessive blank lines in X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=47cfcb688d220ea873f1def214af3295934b1f92;p=openbsd Remove commented out variables and excessive blank lines in pluart_param(). --- diff --git a/sys/dev/ic/pluart.c b/sys/dev/ic/pluart.c index 4ac30b6921d..b329521da52 100644 --- a/sys/dev/ic/pluart.c +++ b/sys/dev/ic/pluart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pluart.c,v 1.12 2022/06/27 13:03:32 anton Exp $ */ +/* $OpenBSD: pluart.c,v 1.13 2022/06/28 16:28:08 anton Exp $ */ /* * Copyright (c) 2014 Patrick Wildt * Copyright (c) 2005 Dale Rahn @@ -303,13 +303,10 @@ int pluart_param(struct tty *tp, struct termios *t) { struct pluart_softc *sc = pluart_cd.cd_devs[DEVUNIT(tp->t_dev)]; - //bus_space_tag_t iot = sc->sc_iot; - //bus_space_handle_t ioh = sc->sc_ioh; int ospeed = t->c_ospeed; int error; tcflag_t oldcflag; - if (t->c_ospeed < 0 || (t->c_ispeed && t->c_ispeed != t->c_ospeed)) return EINVAL; @@ -393,7 +390,6 @@ pluart_param(struct tty *tp, struct termios *t) /* When not using CRTSCTS, RTS follows DTR. */ /* sc->sc_dtr = MCR_DTR; */ - /* and copy to tty */ tp->t_ispeed = t->c_ispeed; tp->t_ospeed = t->c_ospeed;