Commit e01c33b8 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

Staging: hv: Get rid of some DPRINT_ERR() calls

Get rid of some DPRINT_ERR() calls.
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarHank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent d4919829
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
* Authors: * Authors:
* Haiyang Zhang <haiyangz@microsoft.com> * Haiyang Zhang <haiyangz@microsoft.com>
* Hank Janssen <hjanssen@microsoft.com> * Hank Janssen <hjanssen@microsoft.com>
*
* 4/3/2011: K. Y. Srinivasan - Significant restructuring and cleanup.
*/ */
#include <linux/init.h> #include <linux/init.h>
#include <linux/module.h> #include <linux/module.h>
...@@ -967,7 +969,6 @@ static int blkvsc_probe(struct device *device) ...@@ -967,7 +969,6 @@ static int blkvsc_probe(struct device *device)
if (!storvsc_drv_obj->base.dev_add) { if (!storvsc_drv_obj->base.dev_add) {
DPRINT_ERR(BLKVSC_DRV, "OnDeviceAdd() not set");
ret = -1; ret = -1;
goto Cleanup; goto Cleanup;
} }
...@@ -995,10 +996,8 @@ static int blkvsc_probe(struct device *device) ...@@ -995,10 +996,8 @@ static int blkvsc_probe(struct device *device)
/* Call to the vsc driver to add the device */ /* Call to the vsc driver to add the device */
ret = storvsc_drv_obj->base.dev_add(device_obj, &device_info); ret = storvsc_drv_obj->base.dev_add(device_obj, &device_info);
if (ret != 0) { if (ret != 0)
DPRINT_ERR(BLKVSC_DRV, "unable to add blkvsc device");
goto Cleanup; goto Cleanup;
}
blkdev->device_ctx = device_obj; blkdev->device_ctx = device_obj;
/* this identified the device 0 or 1 */ /* this identified the device 0 or 1 */
...@@ -1040,7 +1039,6 @@ static int blkvsc_probe(struct device *device) ...@@ -1040,7 +1039,6 @@ static int blkvsc_probe(struct device *device)
ide1_registered = 1; ide1_registered = 1;
} }
} else { } else {
DPRINT_ERR(BLKVSC_DRV, "invalid pathid");
ret = -1; ret = -1;
goto Cleanup; goto Cleanup;
} }
...@@ -1049,7 +1047,6 @@ static int blkvsc_probe(struct device *device) ...@@ -1049,7 +1047,6 @@ static int blkvsc_probe(struct device *device)
blkdev->gd = alloc_disk(BLKVSC_MINORS); blkdev->gd = alloc_disk(BLKVSC_MINORS);
if (!blkdev->gd) { if (!blkdev->gd) {
DPRINT_ERR(BLKVSC_DRV, "register_blkdev() failed! ret %d", ret);
ret = -1; ret = -1;
goto Cleanup; goto Cleanup;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment