diff options
author | hselasky <hselasky@FreeBSD.org> | 2012-08-10 17:42:14 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2012-08-10 17:42:14 +0000 |
commit | d5dd7e8693b5b53c954679e4286b26d7b48cecd8 (patch) | |
tree | 47143c5c4a8ca7f2b083762f2001d7953169e1a7 /sys/dev/usb | |
parent | 6f292b5574ac475585d410a406b2bfef24d18e76 (diff) | |
download | FreeBSD-src-d5dd7e8693b5b53c954679e4286b26d7b48cecd8.zip FreeBSD-src-d5dd7e8693b5b53c954679e4286b26d7b48cecd8.tar.gz |
Remove unused structure field.
MFC after: 2 weeks
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/serial/ubser.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/serial/ucycom.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/serial/ufoma.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/serial/uftdi.c | 5 | ||||
-rw-r--r-- | sys/dev/usb/serial/umct.c | 4 |
5 files changed, 0 insertions, 21 deletions
diff --git a/sys/dev/usb/serial/ubser.c b/sys/dev/usb/serial/ubser.c index 6d66232..9577a59 100644 --- a/sys/dev/usb/serial/ubser.c +++ b/sys/dev/usb/serial/ubser.c @@ -141,7 +141,6 @@ struct ubser_softc { uint8_t sc_iface_no; uint8_t sc_iface_index; uint8_t sc_curr_tx_unit; - uint8_t sc_name[16]; }; /* prototypes */ @@ -249,9 +248,6 @@ ubser_attach(device_t dev) mtx_init(&sc->sc_mtx, "ubser", NULL, MTX_DEF); ucom_ref(&sc->sc_super_ucom); - snprintf(sc->sc_name, sizeof(sc->sc_name), "%s", - device_get_nameunit(dev)); - sc->sc_iface_no = uaa->info.bIfaceNum; sc->sc_iface_index = uaa->info.bIfaceIndex; sc->sc_udev = uaa->device; diff --git a/sys/dev/usb/serial/ucycom.c b/sys/dev/usb/serial/ucycom.c index 0beccd8..80aa57e 100644 --- a/sys/dev/usb/serial/ucycom.c +++ b/sys/dev/usb/serial/ucycom.c @@ -101,7 +101,6 @@ struct ucycom_softc { #define UCYCOM_CFG_STOPB 0x08 #define UCYCOM_CFG_DATAB 0x03 uint8_t sc_ist; /* status flags from last input */ - uint8_t sc_name[16]; uint8_t sc_iface_no; uint8_t sc_temp_cfg[32]; }; @@ -224,9 +223,6 @@ ucycom_attach(device_t dev) mtx_init(&sc->sc_mtx, "ucycom", NULL, MTX_DEF); ucom_ref(&sc->sc_super_ucom); - snprintf(sc->sc_name, sizeof(sc->sc_name), - "%s", device_get_nameunit(dev)); - DPRINTF("\n"); /* get chip model */ diff --git a/sys/dev/usb/serial/ufoma.c b/sys/dev/usb/serial/ufoma.c index 5edfef8..0e9adf5 100644 --- a/sys/dev/usb/serial/ufoma.c +++ b/sys/dev/usb/serial/ufoma.c @@ -195,7 +195,6 @@ struct ufoma_softc { uint8_t sc_msr; uint8_t sc_modetoactivate; uint8_t sc_currentmode; - uint8_t sc_name[16]; }; /* prototypes */ @@ -394,9 +393,6 @@ ufoma_attach(device_t dev) device_set_usb_desc(dev); - snprintf(sc->sc_name, sizeof(sc->sc_name), - "%s", device_get_nameunit(dev)); - DPRINTF("\n"); /* setup control transfers */ diff --git a/sys/dev/usb/serial/uftdi.c b/sys/dev/usb/serial/uftdi.c index c5e9ae6..7ffd4f2 100644 --- a/sys/dev/usb/serial/uftdi.c +++ b/sys/dev/usb/serial/uftdi.c @@ -110,8 +110,6 @@ struct uftdi_softc { uint8_t sc_hdrlen; uint8_t sc_msr; uint8_t sc_lsr; - - uint8_t sc_name[16]; }; struct uftdi_param_config { @@ -890,9 +888,6 @@ uftdi_attach(device_t dev) mtx_init(&sc->sc_mtx, "uftdi", NULL, MTX_DEF); ucom_ref(&sc->sc_super_ucom); - snprintf(sc->sc_name, sizeof(sc->sc_name), - "%s", device_get_nameunit(dev)); - DPRINTF("\n"); sc->sc_iface_index = uaa->info.bIfaceIndex; diff --git a/sys/dev/usb/serial/umct.c b/sys/dev/usb/serial/umct.c index eaab705..e24fbc8 100644 --- a/sys/dev/usb/serial/umct.c +++ b/sys/dev/usb/serial/umct.c @@ -115,7 +115,6 @@ struct umct_softc { uint8_t sc_mcr; uint8_t sc_iface_no; uint8_t sc_swap_cb; - uint8_t sc_name[16]; }; /* prototypes */ @@ -257,9 +256,6 @@ umct_attach(device_t dev) mtx_init(&sc->sc_mtx, "umct", NULL, MTX_DEF); ucom_ref(&sc->sc_super_ucom); - snprintf(sc->sc_name, sizeof(sc->sc_name), - "%s", device_get_nameunit(dev)); - sc->sc_iface_no = uaa->info.bIfaceNum; iface_index = UMCT_IFACE_INDEX; |