From: K. Y. Srinivasan Date: Fri, 29 Apr 2011 20:45:02 +0000 (-0700) Subject: Staging: hv: Cleanup error handling in vmbus_child_device_register() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=703027d0e4b329dc27fd152934a5ddb3d9f2ddab;p=mv-sheeva.git Staging: hv: Cleanup error handling in vmbus_child_device_register() Cleanup error handling in vmbus_child_device_register(). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Abhishek Kane Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c index d597dd4dd84..1183459f394 100644 --- a/drivers/staging/hv/vmbus_drv.c +++ b/drivers/staging/hv/vmbus_drv.c @@ -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