Staging: hv: Get rid of some DPRINT_ERR() calls
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 22 Apr 2011 21:55:20 +0000 (14:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 25 Apr 2011 23:22:56 +0000 (16:22 -0700)
Get rid of some DPRINT_ERR() calls.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/blkvsc_drv.c

index 92614d5ec8d05690f0de8e3e34b797fe378064a8..35ad3d51c726203f41d492913ded413643498c09 100644 (file)
@@ -17,6 +17,8 @@
  * Authors:
  *   Haiyang Zhang <haiyangz@microsoft.com>
  *   Hank Janssen  <hjanssen@microsoft.com>
+ *
+ * 4/3/2011: K. Y. Srinivasan - Significant restructuring and cleanup.
  */
 #include <linux/init.h>
 #include <linux/module.h>
@@ -967,7 +969,6 @@ static int blkvsc_probe(struct device *device)
 
 
        if (!storvsc_drv_obj->base.dev_add) {
-               DPRINT_ERR(BLKVSC_DRV, "OnDeviceAdd() not set");
                ret = -1;
                goto Cleanup;
        }
@@ -995,10 +996,8 @@ static int blkvsc_probe(struct device *device)
 
        /* Call to the vsc driver to add the device */
        ret = storvsc_drv_obj->base.dev_add(device_obj, &device_info);
-       if (ret != 0) {
-               DPRINT_ERR(BLKVSC_DRV, "unable to add blkvsc device");
+       if (ret != 0)
                goto Cleanup;
-       }
 
        blkdev->device_ctx = device_obj;
        /* this identified the device 0 or 1 */
@@ -1040,7 +1039,6 @@ static int blkvsc_probe(struct device *device)
                        ide1_registered = 1;
                }
        } else {
-               DPRINT_ERR(BLKVSC_DRV, "invalid pathid");
                ret = -1;
                goto Cleanup;
        }
@@ -1049,7 +1047,6 @@ static int blkvsc_probe(struct device *device)
 
        blkdev->gd = alloc_disk(BLKVSC_MINORS);
        if (!blkdev->gd) {
-               DPRINT_ERR(BLKVSC_DRV, "register_blkdev() failed! ret %d", ret);
                ret = -1;
                goto Cleanup;
        }