From: K. Y. Srinivasan Date: Thu, 25 Aug 2011 16:49:08 +0000 (-0700) Subject: Staging: hv: storvsc: Cleanup returned error code in storvsc_host_reset() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f3b741658c983a2a7abc5d22a5dc60b503f6cbc3;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git Staging: hv: storvsc: Cleanup returned error code in storvsc_host_reset() Use standard Linux error codes. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index 29ac64406880..0eb8c71b787a 100644 --- a/drivers/staging/hv/storvsc_drv.c +++ b/drivers/staging/hv/storvsc_drv.c @@ -346,7 +346,7 @@ static int storvsc_host_reset(struct hv_device *device) stor_device = get_stor_device(device); if (!stor_device) - return -1; + return -ENODEV; request = &stor_device->reset_request; vstor_packet = &request->vstor_packet;