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:
Родитель
7a8488e0da
Коммит
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче