summaryrefslogtreecommitdiffstats
path: root/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2016-04-13 16:19:50 +0000
committergjb <gjb@FreeBSD.org>2016-04-13 16:19:50 +0000
commitae096a53a90aee9859587d48d5a0279567abb413 (patch)
tree87a6e02764a36c4acdd11454b782dc0972ea029a /sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
parentcad5e8d3bce52708ae6b253a4427d56b4befd46c (diff)
downloadFreeBSD-src-ae096a53a90aee9859587d48d5a0279567abb413.zip
FreeBSD-src-ae096a53a90aee9859587d48d5a0279567abb413.tar.gz
MFH
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c')
-rw-r--r--sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c7
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);
OpenPOWER on IntegriCloud