diff options
author | Ding Xiang <dingxiang@cmss.chinamobile.com> | 2018-09-06 10:51:10 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-14 15:25:57 +0200 |
commit | a71bcc1b09497d5cb7f24a7a6ce74d8ebd99d457 (patch) | |
tree | df29063b2da7fde0870a637e4b688ae3b158ca4c /drivers/vme/vme.c | |
parent | binder: Add BINDER_GET_NODE_INFO_FOR_REF ioctl. (diff) | |
download | linux-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.c | 1 |
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); |