--- sys/dev/ata/ata-all.c 2008-11-22 17:00:59.000000000 +0800 +++ /var/current/mysrc/sys/dev/ata/ata-all.c 2008-11-23 21:44:15.000000000 +0800 @@ -304,11 +304,10 @@ int ata_resume(device_t dev) { - struct ata_channel *ch; int error; /* check for valid device */ - if (!dev || !(ch = device_get_softc(dev))) + if (!dev || !device_get_softc(dev)) return ENXIO; /* reinit the devices, we dont know what mode/state they are in */