diff options
author | gjb <gjb@FreeBSD.org> | 2016-04-13 16:19:50 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2016-04-13 16:19:50 +0000 |
commit | ae096a53a90aee9859587d48d5a0279567abb413 (patch) | |
tree | 87a6e02764a36c4acdd11454b782dc0972ea029a /sys/dev/hyperv/storvsc | |
parent | cad5e8d3bce52708ae6b253a4427d56b4befd46c (diff) | |
download | FreeBSD-src-ae096a53a90aee9859587d48d5a0279567abb413.zip FreeBSD-src-ae096a53a90aee9859587d48d5a0279567abb413.tar.gz |
MFH
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/dev/hyperv/storvsc')
-rw-r--r-- | sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c index 9537c84..38f2f28 100644 --- a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c +++ b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c @@ -293,9 +293,6 @@ get_stor_device(struct hv_device *device, struct storvsc_softc *sc; sc = device_get_softc(device->device); - if (sc == NULL) { - return NULL; - } if (outbound) { /* @@ -976,10 +973,6 @@ storvsc_attach(device_t dev) root_mount_token = root_mount_hold("storvsc"); sc = device_get_softc(dev); - if (sc == NULL) { - ret = ENOMEM; - goto cleanup; - } stor_type = storvsc_get_storage_type(dev); |