Commit 17eafc3e authored by Manohar Vanga's avatar Manohar Vanga

simulation: remove unnecessary label in cleanup code

Signed-off-by: 's avatarManohar Vanga <manohar.vanga@cern.ch>
parent 2d3c5e1c
...@@ -84,7 +84,7 @@ static int fake_wbbus_probe(struct device *dev) ...@@ -84,7 +84,7 @@ static int fake_wbbus_probe(struct device *dev)
while (wbd->wbd_magic == SDWB_WBD_MAGIC) { while (wbd->wbd_magic == SDWB_WBD_MAGIC) {
wbdev = kzalloc(sizeof(struct wb_device), GFP_KERNEL); wbdev = kzalloc(sizeof(struct wb_device), GFP_KERNEL);
if (!wbdev) if (!wbdev)
goto alloc_fail; goto register_fail;
memcpy(&wbdev->wbd, wbd, sizeof(struct sdwb_wbd)); memcpy(&wbdev->wbd, wbd, sizeof(struct sdwb_wbd));
if (wb_register_device(wbdev) < 0) if (wb_register_device(wbdev) < 0)
goto register_fail; goto register_fail;
...@@ -100,8 +100,6 @@ static int fake_wbbus_probe(struct device *dev) ...@@ -100,8 +100,6 @@ static int fake_wbbus_probe(struct device *dev)
register_fail: register_fail:
kfree(wbdev); kfree(wbdev);
alloc_fail:
mutex_lock(&list_lock); mutex_lock(&list_lock);
list_for_each_entry_safe(wbdev, next, &spec_devices, list) { list_for_each_entry_safe(wbdev, next, &spec_devices, list) {
list_del(&wbdev->list); list_del(&wbdev->list);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment