mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 19:59:34 -04: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:
committed by
Greg Kroah-Hartman
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
|
||||
|
||||
Reference in New Issue
Block a user