Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Initialize sc_rts and sc_dts to 0, instead of -1...



details:   https://anonhg.NetBSD.org/src/rev/7c5fb3f399cf
branches:  trunk
changeset: 565461:7c5fb3f399cf
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Apr 09 19:06:52 2004 +0000

description:
Initialize sc_rts and sc_dts to 0, instead of -1, as suggested in
PR kern/21043.

diffstat:

 sys/dev/usb/uplcom.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 494b8d2d8e82 -r 7c5fb3f399cf sys/dev/usb/uplcom.c
--- a/sys/dev/usb/uplcom.c      Fri Apr 09 19:01:38 2004 +0000
+++ b/sys/dev/usb/uplcom.c      Fri Apr 09 19:06:52 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uplcom.c,v 1.34 2004/02/19 01:12:05 augustss Exp $     */
+/*     $NetBSD: uplcom.c,v 1.35 2004/04/09 19:06:52 martin Exp $       */
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uplcom.c,v 1.34 2004/02/19 01:12:05 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uplcom.c,v 1.35 2004/04/09 19:06:52 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -337,7 +337,7 @@
                USB_ATTACH_ERROR_RETURN;
        }
 
-       sc->sc_dtr = sc->sc_rts = -1;
+       sc->sc_dtr = sc->sc_rts = 0;
        uca.portno = UCOM_UNK_PORTNO;
        /* bulkin, bulkout set above */
        uca.ibufsize = UPLCOMIBUFSIZE;



Home | Main Index | Thread Index | Old Index