Skip to content

Commit

Permalink
Staging: hv: storvsc: Cleanup error code returned in storvsc_probe()
Browse files Browse the repository at this point in the history
Use standard Linux error codes.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Aug 25, 2011
1 parent f3b7416 commit 8e85468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/hv/storvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 8e85468

Please sign in to comment.