[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1536223870-6324-1-git-send-email-dingxiang@cmss.chinamobile.com>
Date: Thu, 6 Sep 2018 16:51:10 +0800
From: Ding Xiang <dingxiang@...s.chinamobile.com>
To: martyn@...chs.me.uk, manohar.vanga@...il.com,
gregkh@...uxfoundation.org, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] vme: remove unneeded kfree
put_device will call vme_dev_release to free vdev, kfree is
unnecessary here.
Signed-off-by: Ding Xiang <dingxiang@...s.chinamobile.com>
---
drivers/vme/vme.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/vme/vme.c b/drivers/vme/vme.c
index 92500f6..520a5f9 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);
--
1.9.1
Powered by blists - more mailing lists