summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb2/controller
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-02-01 00:51:25 +0000
committerthompsa <thompsa@FreeBSD.org>2009-02-01 00:51:25 +0000
commitee1591cd11414dcc5bbcb3df9aadb4e83675fc9b (patch)
treee15ef7324aee6485eced7ea38434589677635ff5 /sys/dev/usb2/controller
parent6e8acdecbedf9f7a7cabde60d53d872fe4f3579b (diff)
downloadFreeBSD-src-ee1591cd11414dcc5bbcb3df9aadb4e83675fc9b.zip
FreeBSD-src-ee1591cd11414dcc5bbcb3df9aadb4e83675fc9b.tar.gz
Remove check for null softc in attach, it can never happen.
Diffstat (limited to 'sys/dev/usb2/controller')
-rw-r--r--sys/dev/usb2/controller/at91dci_atmelarm.c3
-rw-r--r--sys/dev/usb2/controller/ehci2_pci.c4
-rw-r--r--sys/dev/usb2/controller/musb2_otg_atmelarm.c4
-rw-r--r--sys/dev/usb2/controller/ohci2_atmelarm.c3
-rw-r--r--sys/dev/usb2/controller/ohci2_pci.c4
-rw-r--r--sys/dev/usb2/controller/uhci2_pci.c4
-rw-r--r--sys/dev/usb2/controller/uss820dci_atmelarm.c4
7 files changed, 0 insertions, 26 deletions
diff --git a/sys/dev/usb2/controller/at91dci_atmelarm.c b/sys/dev/usb2/controller/at91dci_atmelarm.c
index 5ce5625..496eade 100644
--- a/sys/dev/usb2/controller/at91dci_atmelarm.c
+++ b/sys/dev/usb2/controller/at91dci_atmelarm.c
@@ -131,9 +131,6 @@ at91_udp_attach(device_t dev)
int err;
int rid;
- if (sc == NULL) {
- return (ENXIO);
- }
/* setup AT9100 USB device controller interface softc */
sc->sc_dci.sc_clocks_on = &at91_udp_clocks_on;
diff --git a/sys/dev/usb2/controller/ehci2_pci.c b/sys/dev/usb2/controller/ehci2_pci.c
index 4ca43d9..038211d 100644
--- a/sys/dev/usb2/controller/ehci2_pci.c
+++ b/sys/dev/usb2/controller/ehci2_pci.c
@@ -227,10 +227,6 @@ ehci_pci_attach(device_t self)
int err;
int rid;
- if (sc == NULL) {
- device_printf(self, "Could not allocate sc\n");
- return (ENXIO);
- }
/* initialise some bus fields */
sc->sc_bus.parent = self;
sc->sc_bus.devices = sc->sc_devices;
diff --git a/sys/dev/usb2/controller/musb2_otg_atmelarm.c b/sys/dev/usb2/controller/musb2_otg_atmelarm.c
index 44fa320..6477c97 100644
--- a/sys/dev/usb2/controller/musb2_otg_atmelarm.c
+++ b/sys/dev/usb2/controller/musb2_otg_atmelarm.c
@@ -90,11 +90,7 @@ musbotg_attach(device_t dev)
int err;
int rid;
- if (sc == NULL) {
- return (ENXIO);
- }
/* setup MUSB OTG USB controller interface softc */
-
sc->sc_otg.sc_clocks_on = &musbotg_clocks_on;
sc->sc_otg.sc_clocks_off = &musbotg_clocks_off;
sc->sc_otg.sc_clocks_arg = sc;
diff --git a/sys/dev/usb2/controller/ohci2_atmelarm.c b/sys/dev/usb2/controller/ohci2_atmelarm.c
index 41e7b10..a7f086c 100644
--- a/sys/dev/usb2/controller/ohci2_atmelarm.c
+++ b/sys/dev/usb2/controller/ohci2_atmelarm.c
@@ -69,9 +69,6 @@ ohci_atmelarm_attach(device_t dev)
int err;
int rid;
- if (sc == NULL) {
- return (ENXIO);
- }
/* initialise some bus fields */
sc->sc_ohci.sc_bus.parent = dev;
sc->sc_ohci.sc_bus.devices = sc->sc_ohci.sc_devices;
diff --git a/sys/dev/usb2/controller/ohci2_pci.c b/sys/dev/usb2/controller/ohci2_pci.c
index 09a4cdf..7d3506e 100644
--- a/sys/dev/usb2/controller/ohci2_pci.c
+++ b/sys/dev/usb2/controller/ohci2_pci.c
@@ -195,10 +195,6 @@ ohci_pci_attach(device_t self)
int rid;
int err;
- if (sc == NULL) {
- device_printf(self, "Could not allocate sc\n");
- return (ENXIO);
- }
/* initialise some bus fields */
sc->sc_bus.parent = self;
sc->sc_bus.devices = sc->sc_devices;
diff --git a/sys/dev/usb2/controller/uhci2_pci.c b/sys/dev/usb2/controller/uhci2_pci.c
index 70cbd3a..725cd84 100644
--- a/sys/dev/usb2/controller/uhci2_pci.c
+++ b/sys/dev/usb2/controller/uhci2_pci.c
@@ -246,10 +246,6 @@ uhci_pci_attach(device_t self)
int rid;
int err;
- if (sc == NULL) {
- device_printf(self, "Could not allocate sc\n");
- return (ENXIO);
- }
/* initialise some bus fields */
sc->sc_bus.parent = self;
sc->sc_bus.devices = sc->sc_devices;
diff --git a/sys/dev/usb2/controller/uss820dci_atmelarm.c b/sys/dev/usb2/controller/uss820dci_atmelarm.c
index 1d484a2..387c167 100644
--- a/sys/dev/usb2/controller/uss820dci_atmelarm.c
+++ b/sys/dev/usb2/controller/uss820dci_atmelarm.c
@@ -134,10 +134,6 @@ uss820_atmelarm_attach(device_t dev)
int err;
int rid;
- if (sc == NULL) {
- return (ENXIO);
- }
-
/* initialise some bus fields */
sc->sc_bus.parent = dev;
sc->sc_bus.devices = sc->sc_devices;
OpenPOWER on IntegriCloud