From: Ding Xiang Date: Thu, 6 Sep 2018 08:51:10 +0000 (+0800) Subject: vme: remove unneeded kfree X-Git-Tag: v5.4-rc1~2359^2~214 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a71bcc1b09497d5cb7f24a7a6ce74d8ebd99d457;p=platform%2Fkernel%2Flinux-rpi.git vme: remove unneeded kfree put_device will call vme_dev_release to free vdev, kfree is unnecessary here. Signed-off-by: Ding Xiang Signed-off-by: Greg Kroah-Hartman --- 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);