mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-06 05:02:31 +00:00
vme: remove unneeded kfree
put_device will call vme_dev_release to free vdev, kfree is unnecessary here. Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b7e6a8961b
commit
a71bcc1b09
@ -1890,7 +1890,6 @@ static int __vme_register_driver_bus(struct vme_driver *drv,
|
||||
|
||||
err_reg:
|
||||
put_device(&vdev->dev);
|
||||
kfree(vdev);
|
||||
err_devalloc:
|
||||
list_for_each_entry_safe(vdev, tmp, &drv->devices, drv_list) {
|
||||
list_del(&vdev->drv_list);
|
||||
|
Loading…
Reference in New Issue
Block a user