Skip to content

Commit

Permalink
Staging: hv: Cleanup error handling in vmbus_child_device_register()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 3, 2011
1 parent 7a8488e commit 703027d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 703027d

Please sign in to comment.