mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
rpmsg: don't use idr_remove_all()
idr_destroy() can destroy idr by itself and idr_remove_all() is being deprecated. Drop its usage. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Ohad Ben-Cohen <ohad@wizery.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
045dc40d9e
commit
a15abcc961
1 changed files with 0 additions and 1 deletions
|
@ -1036,7 +1036,6 @@ static void rpmsg_remove(struct virtio_device *vdev)
|
|||
if (vrp->ns_ept)
|
||||
__rpmsg_destroy_ept(vrp, vrp->ns_ept);
|
||||
|
||||
idr_remove_all(&vrp->endpoints);
|
||||
idr_destroy(&vrp->endpoints);
|
||||
|
||||
vdev->config->del_vqs(vrp->vdev);
|
||||
|
|
Loading…
Reference in a new issue