Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/nick-nhusb]: src/sys/dev/usb Style... No functional change.



details:   https://anonhg.NetBSD.org/src/rev/44e37bf15af9
branches:  nick-nhusb
changeset: 804692:44e37bf15af9
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Nov 01 08:27:57 2016 +0000

description:
Style... No functional change.

diffstat:

 sys/dev/usb/ucom.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r c311ce8afef7 -r 44e37bf15af9 sys/dev/usb/ucom.c
--- a/sys/dev/usb/ucom.c        Thu Oct 27 12:30:54 2016 +0000
+++ b/sys/dev/usb/ucom.c        Tue Nov 01 08:27:57 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ucom.c,v 1.108.2.25 2016/10/27 12:30:54 skrll Exp $    */
+/*     $NetBSD: ucom.c,v 1.108.2.26 2016/11/01 08:27:57 skrll Exp $    */
 
 /*
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.108.2.25 2016/10/27 12:30:54 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.108.2.26 2016/11/01 08:27:57 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -584,8 +584,6 @@
        sc->sc_opening = 1;
 
        if (!ISSET(tp->t_state, TS_ISOPEN) && tp->t_wopen == 0) {
-               struct termios t;
-
                tp->t_dev = dev;
 
                if (sc->sc_methods->ucom_open != NULL) {
@@ -613,6 +611,8 @@
                 * Initialize the termios status to the defaults.  Add in the
                 * sticky bits from TIOCSFLAGS.
                 */
+               struct termios t;
+
                t.c_ispeed = 0;
                t.c_ospeed = TTYDEF_SPEED;
                t.c_cflag = TTYDEF_CFLAG;



Home | Main Index | Thread Index | Old Index