Cosmetic changes.

This commit is contained in:
augustss 2002-10-27 20:16:41 +00:00
parent 56bafd7e79
commit 94a55d86a0
1 changed files with 17 additions and 22 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ubsa.c,v 1.2 2002/10/08 16:13:36 pooka Exp $ */
/* $NetBSD: ubsa.c,v 1.3 2002/10/27 20:16:41 augustss Exp $ */
/*-
* Copyright (c) 2002, Alexander Kabaev <kan.FreeBSD.org>.
* All rights reserved.
@ -610,11 +610,10 @@ ubsa_flow(struct ubsa_softc *sc, tcflag_t cflag, tcflag_t iflag)
Static int
ubsa_param(void *addr, int portno, struct termios *ti)
{
struct ubsa_softc *sc;
struct ubsa_softc *sc = addr;
DPRINTF(("ubsa_param: sc = %p\n", sc));
sc = addr;
ubsa_baudrate(sc, ti->c_ospeed);
ubsa_parity(sc, ti->c_cflag);
ubsa_databits(sc, ti->c_cflag);
@ -627,10 +626,9 @@ ubsa_param(void *addr, int portno, struct termios *ti)
Static int
ubsa_open(void *addr, int portno)
{
struct ubsa_softc *sc;
struct ubsa_softc *sc = addr;
int err;
sc = addr;
if (sc->sc_dying)
return (ENXIO);
@ -661,10 +659,9 @@ ubsa_open(void *addr, int portno)
Static void
ubsa_close(void *addr, int portno)
{
struct ubsa_softc *sc;
struct ubsa_softc *sc = addr;
int err;
sc = addr;
if (sc->sc_dying)
return;
@ -689,10 +686,9 @@ ubsa_close(void *addr, int portno)
Static void
ubsa_intr(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
{
struct ubsa_softc *sc;
struct ubsa_softc *sc = priv;
u_char *buf;
sc = priv;
buf = sc->sc_intr_buf;
if (sc->sc_dying)
return;
@ -721,11 +717,10 @@ ubsa_intr(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
Static void
ubsa_get_status(void *addr, int portno, u_char *lsr, u_char *msr)
{
struct ubsa_softc *sc;
struct ubsa_softc *sc = addr;
DPRINTF(("ubsa_get_status\n"));
sc = addr;
if (lsr != NULL)
*lsr = sc->sc_lsr;
if (msr != NULL)