Commit 8e854680 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman
Browse files

Staging: hv: storvsc: Cleanup error code returned in storvsc_probe()



Use standard Linux error codes.

Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f3b74165
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -685,7 +685,7 @@ static int storvsc_probe(struct hv_device *device)
	if (ret != 0) {
		kmem_cache_destroy(host_dev->request_pool);
		scsi_host_put(host);
		return -1;
		return -ENODEV;
	}

	host_dev->path = device_info.path_id;
@@ -706,7 +706,7 @@ static int storvsc_probe(struct hv_device *device)

		kmem_cache_destroy(host_dev->request_pool);
		scsi_host_put(host);
		return -1;
		return -ENODEV;
	}

	scsi_scan_host(host);