From: K. Y. Srinivasan Date: Thu, 25 Aug 2011 16:49:03 +0000 (-0700) Subject: Staging: hv: storvsc: Cleanup error handling in storvsc_channel_init() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5260e291ff116ff1db14166a778fcab3f5932bc8;p=openwrt%2Fstaging%2Fblogic.git Staging: hv: storvsc: Cleanup error handling in storvsc_channel_init() 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.c b/drivers/staging/hv/storvsc.c index 915aeeed11a1..22ac6f21e261 100644 --- a/drivers/staging/hv/storvsc.c +++ b/drivers/staging/hv/storvsc.c @@ -111,7 +111,7 @@ static int storvsc_channel_init(struct hv_device *device) stor_device = get_stor_device(device); if (!stor_device) - return -1; + return -ENODEV; request = &stor_device->init_request; vstor_packet = &request->vstor_packet;