summaryrefslogtreecommitdiff
path: root/sys/dev/intpm
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2017-09-13 16:43:31 +0000
committerConrad Meyer <cem@FreeBSD.org>2017-09-13 16:43:31 +0000
commit02e015aa38043db953b91c07794b02f7f74d5b5c (patch)
treea90a895f6735fa68f4cbc5706207f42198b8b39d /sys/dev/intpm
parent4572fb3faf80473e4dbb13dc956386c27cb2ad00 (diff)
Notes
Diffstat (limited to 'sys/dev/intpm')
-rw-r--r--sys/dev/intpm/intpm.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/intpm/intpm.c b/sys/dev/intpm/intpm.c
index 79e2de6f37b5..1521d82eebeb 100644
--- a/sys/dev/intpm/intpm.c
+++ b/sys/dev/intpm/intpm.c
@@ -185,10 +185,6 @@ sb8xx_attach(device_t dev)
device_printf(dev, "bus_set_resource for SMBus IO failed\n");
return (ENXIO);
}
- if (res == NULL) {
- device_printf(dev, "bus_alloc_resource for SMBus IO failed\n");
- return (ENXIO);
- }
sc->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &sc->io_rid,
RF_ACTIVE);
if (sc->io_res == NULL) {