intpm(4): While here, remove redundant 'res' check

Reported by:	avg
Sponsored by:	Dell EMC Isilon
This commit is contained in:
cem 2017-09-13 16:43:31 +00:00
parent daef3d23e9
commit ba609761a8

View File

@ -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) {