diff options
author | Ding Xiang <dingxiang@cmss.chinamobile.com> | 2018-09-06 11:51:10 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-14 16:25:57 +0300 |
commit | a71bcc1b09497d5cb7f24a7a6ce74d8ebd99d457 (patch) | |
tree | df29063b2da7fde0870a637e4b688ae3b158ca4c /drivers/vme | |
parent | b7e6a8961b5d6dd3fc535970e65d497d868bb49f (diff) | |
download | linux-a71bcc1b09497d5cb7f24a7a6ce74d8ebd99d457.tar.xz |
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')
-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); |