mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
Staging: hv: Cleanup error handling in vmbus_child_device_register()
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>
This commit is contained in:
parent
7a8488e0da
commit
703027d0e4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user