darwin: dpriv->device will never be NULL for a valid device. remove unnecessary code...