Staging: hv: Cleanup error handling in vmbus_child_device_register()
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 29 Apr 2011 20:45:02 +0000 (13:45 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 3 May 2011 20:31:26 +0000 (13:31 -0700)
Cleanup error handling in vmbus_child_device_register().

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

index d597dd4..1183459 100644 (file)
@@ -720,9 +720,6 @@ int vmbus_child_device_register(struct hv_device *child_device_obj)
         */
        ret = device_register(&child_device_obj->device);
 
-       /* vmbus_probe() error does not get propergate to device_register(). */
-       ret = child_device_obj->probe_error;
-
        if (ret)
                pr_err("Unable to register child device\n");
        else