summaryrefslogtreecommitdiffstats
path: root/drivers/vme/vme.c
diff options
context:
space:
mode:
authorDing Xiang <dingxiang@cmss.chinamobile.com>2018-09-06 10:51:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-14 15:25:57 +0200
commita71bcc1b09497d5cb7f24a7a6ce74d8ebd99d457 (patch)
treedf29063b2da7fde0870a637e4b688ae3b158ca4c /drivers/vme/vme.c
parentbinder: Add BINDER_GET_NODE_INFO_FOR_REF ioctl. (diff)
downloadlinux-a71bcc1b09497d5cb7f24a7a6ce74d8ebd99d457.tar.xz
linux-a71bcc1b09497d5cb7f24a7a6ce74d8ebd99d457.zip
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>
Diffstat (limited to 'drivers/vme/vme.c')
-rw-r--r--drivers/vme/vme.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/vme/vme.c b/drivers/vme/vme.c
index 92500f6bdad1..520a5f9c27de 100644
--- a/drivers/vme/vme.c
+++ b/drivers/vme/vme.c
@@ -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);